Skip to content

Commit

Permalink
ci: use next tag for pre-releases
Browse files Browse the repository at this point in the history
janvennemann committed Nov 9, 2023
1 parent 580b43e commit 7b4acf5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Publish
on:
release:
types: [ created ]
types: [published]

jobs:
publish:
@@ -28,4 +28,5 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish
RELEASE_TAG: ${{ github.event.release.prerelease && 'next' || 'latest' }}
run: npm publish --tag $RELEASE_TAG

0 comments on commit 7b4acf5

Please sign in to comment.