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 6bdd03f commit 09c4d37Copy full SHA for 09c4d37
.github/workflows/publish.yml
@@ -37,7 +37,14 @@ jobs:
37
# fetch-depth 0 needed by GitHub Release
38
39
- name: publish to NPM
40
- run: npm publish --access=public
+ run: |
41
+ VERSION=$(node -e 'console.log(require("./package.json").version)')
42
+ if printf '%s' "$VERSION" | grep -q -- '-'; then
43
+ # prerelease versions get the "next" tag
44
+ npm publish --access=public --tag=next
45
+ else
46
+ npm publish --access=public
47
+ fi
48
49
publish-gpr:
50
needs: build
0 commit comments