Skip to content

Commit

Permalink
update build script for npm tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
Bridget Almas committed Aug 21, 2020
1 parent 77cc483 commit 386e04b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions github-build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import * as core from '@actions/core'
(async function() {
const buildDT = Date.now()
const buildInfo = generateBuildInfo(buildDT)
const npmTag = buildInfo.branch === 'production' ? 'rc' : buildInfo.branch
console.log(`Starting build ${buildInfo.name}`)

const baseVersion = pkg.version.split('-')[0]
Expand Down Expand Up @@ -40,6 +41,7 @@ import * as core from '@actions/core'
try {
console.info(core)
core.default.setOutput('buildName',buildInfo.name)
core.default.setOutput('npmTag',npmTag)
} catch (error) {
console.error('Failed to set output variable:', error)
process.exit(3)
Expand Down

0 comments on commit 386e04b

Please sign in to comment.