We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e2b1a9 commit c9a4b22Copy full SHA for c9a4b22
.github/workflows/npm-publish.yml
@@ -5,7 +5,7 @@ name: Publish to npm
5
6
on:
7
release:
8
- types: [created]
+ types: [published]
9
10
jobs:
11
build:
@@ -35,6 +35,11 @@ jobs:
35
- run: npm version ${TAG_NAME} --git-tag-version=false
36
env:
37
TAG_NAME: ${{ github.ref_name }}
38
+ - run: npm publish --provenance --access public --tag next
39
+ if: "github.event.release.prerelease"
40
+ env:
41
+ NODE_AUTH_TOKEN: ${{ secrets.npm_secret }}
42
- run: npm publish --provenance --access public
43
+ if: "!github.event.release.prerelease"
44
45
NODE_AUTH_TOKEN: ${{ secrets.npm_secret }}
0 commit comments