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.
2 parents 74643e6 + de10c80 commit cb75f82Copy full SHA for cb75f82
.github/workflows/npm.yml
@@ -24,6 +24,16 @@ jobs:
24
- run: npm run build
25
env:
26
IS_PUBLISHING: 'YES'
27
- - run: npm publish --access=public
+
28
+ - name: Check if pre-release and publish to NPM
29
+ run: |
30
+ VERSION=$(node -p "require('./package.json').version")
31
+ if [[ "$VERSION" == *"-"* ]]; then
32
+ echo "Publishing pre-release: $VERSION"
33
+ npm publish --access=public --tag rc
34
+ else
35
+ echo "Publishing stable release: $VERSION"
36
+ npm publish --access=public
37
+ fi
38
39
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments