Skip to content

Commit

Permalink
Publish - Release Candidates as next (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith authored Nov 19, 2024
1 parent 92ed2d8 commit 2063320
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ jobs:
- name: Publish
run: |
export PATH="$HOME/.bun/bin:$PATH"
npm publish --access public
# Check if this is a pre-release version (contains a hyphen like "-rc")
if [[ "${GITHUB_REF#refs/tags/}" == *-* ]]; then
npm publish --access public --tag next
else
npm publish --access public
fi
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 2063320

Please sign in to comment.