From 2fdd687611a42ae14322539d6f07aa2eac4693c5 Mon Sep 17 00:00:00 2001 From: Bridget Almas Date: Fri, 21 Aug 2020 08:43:45 -0400 Subject: [PATCH] increase version and update build workflow --- .github/workflows/qa.yml | 6 +++--- github-build.mjs | 2 ++ package.json | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index 94df4a1..81d26d8 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -1,7 +1,7 @@ -name: QA Build +name: Release Build on: push: - branches: [ qa ] + branches: [ qa, ftqa, production ] workflow_dispatch: @@ -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 }} diff --git a/github-build.mjs b/github-build.mjs index 9c07ca8..5fab3f4 100644 --- a/github-build.mjs +++ b/github-build.mjs @@ -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] @@ -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) diff --git a/package.json b/package.json index 24745b6..47c4e22 100644 --- a/package.json +++ b/package.json @@ -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": {