Skip to content

Commit

Permalink
Merge pull request #221 from tidev/prerelease-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
cb1kenobi authored Nov 9, 2023
2 parents 580b43e + 7b4acf5 commit a91898c
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:
Expand All @@ -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 a91898c

Please sign in to comment.