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 d449196 commit 1737f38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ jobs:
- name: Build artifacts for feature branches
if: github.ref_name != 'main' && github.ref_name != 'next'
run: |
node ./src/js/version.mjs latest-prerelease $FEATURE_BRANCH
npm version prerelease --preid $FEATURE_BRANCH --workspaces --git-tag-version false
PRERELEASE=$(node ./src/js/version.mjs branch-to-prerelease $FEATURE_BRANCH)
node ./src/js/version.mjs latest-prerelease $PRERELEASE
npm version prerelease --preid $PRERELEASE --workspaces --git-tag-version false
npm run dist
- name: Check if semantic-release created a build
id: check_build
Expand Down
3 changes: 3 additions & 0 deletions src/js/version.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,7 @@ else if (task === 'validate') {
}
return null
});
} else if (task === 'branch-to-prerelease') {
const branch = process.argv.shift()
console.log(branch.replace('/', '-'))
}

0 comments on commit 1737f38

Please sign in to comment.