Skip to content

Commit

Permalink
chore (ci): support prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
LironEr committed Aug 5, 2023
1 parent ab6787e commit 208863c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish --provenance --access public
- run: npm publish --provenance --access public --tag ${{ env.RELEASE_TAG }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
RELEASE_TAG: ${{ github.event.release.prerelease == true && 'next' || 'latest' }}

0 comments on commit 208863c

Please sign in to comment.