Skip to content

Commit

Permalink
PR deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
kpears201 committed Nov 10, 2023
1 parent 59e82f6 commit e8cee5a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,17 @@ jobs:
run: |
echo 'NPM_DIST_TAG="--tag next"' >> $GITHUB_ENV
echo "DOCS_TAG=next" >> $GITHUB_ENV
- name: Set feature branch tags
if: github.ref_name != 'main' && github.ref_name != 'next' && github.event_name != 'pull_request'
run: |
echo 'NPM_DIST_TAG=""' >> $GITHUB_ENV
echo "FEATURE_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
- name: Set PR tags
if: github.ref_name != 'main' && github.ref_name != 'next' && github.event_name == 'pull_request'
run: |
echo 'NPM_DIST_TAG=""' >> $GITHUB_ENV
echo "DOCS_TAG=${{ github.head_ref }}" >> $GITHUB_ENV
echo "FEATURE_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
- name: Release mono-artifact to GitHub
if: (github.ref_name != 'main' && github.event_name != 'pull_request') || github.event_name == 'workflow_dispatch'
env:
Expand All @@ -63,8 +69,8 @@ jobs:
- name: Build artifacts for feature branches
if: github.ref_name != 'main' && github.ref_name != 'next'
run: |
$(node ./src/js/version.mjs latest-prerelease ${{ github.ref_name }})
npm version prerelease --preid ${{ github.ref_name }} --workspaces --git-tag-version false
$(node ./src/js/version.mjs latest-prerelease $FEATURE_BRANCH)
npm version prerelease --preid $FEATURE_BRANCH --workspaces --git-tag-version false
npm run dist
- name: Check if semantic-release created a build
id: check_build
Expand Down
1 change: 1 addition & 0 deletions src/js/version.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ else if (task === 'validate') {


} else if (task === 'latest-prerelease') {
console.log('Finding the latest prerelease')
const prerelease = process.argv.shift()
console.log('prerelease : ' + prerelease)
exec("npm show @firebolt-js/sdk versions --json", (error, result, errlog) => {
Expand Down

0 comments on commit e8cee5a

Please sign in to comment.