ci-versions.js 400 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
const os = require('os')

// this script unbundles the published packages output
// from changesets action to a key-value pair to be used
// with our publishing CI workflow
data = process.argv[2]
data = JSON.parse(data)

for (const i of data) {
  const name = i.name.replace("@eth-optimism/", "")
  const version = i.version
  process.stdout.write(`::set-output name=${name}::${version}` + os.EOL)
}