Skip to content

Commit

Permalink
increase version and update build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Bridget Almas committed Aug 21, 2020
1 parent 98fe713 commit 2fdd687
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: QA Build
name: Release Build
on:
push:
branches: [ qa ]
branches: [ qa, ftqa, production ]

workflow_dispatch:

Expand Down Expand Up @@ -49,5 +49,5 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: publish
run: npm publish --tag qa
run: npm publish --tag ${{ steps.run_build.outputs.npmTag }}

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 @@ -50,6 +51,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(4)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alpheios-embedded",
"version": "3.3.0-qa.20200814435",
"version": "3.3.1",
"description": "Alpheios Embedded Library",
"main": "dist/alpheios-embedded.js",
"directories": {
Expand Down

0 comments on commit 2fdd687

Please sign in to comment.