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 a93cd80 commit e382fbdCopy full SHA for e382fbd
.github/workflows/release.yml
@@ -29,7 +29,17 @@ jobs:
29
30
- run: pnpm build
31
32
- - run: npm publish --provenance --access public
+ - name: Determine npm tag
33
+ id: npm-tag
34
+ run: |
35
+ if [[ "${{ github.ref_name }}" == *"-beta"* ]] || [[ "${{ github.ref_name }}" == *"-rc"* ]] || [[ "${{ github.ref_name }}" == *"-alpha"* ]]; then
36
+ echo "tag=beta" >> $GITHUB_OUTPUT
37
+ else
38
+ echo "tag=latest" >> $GITHUB_OUTPUT
39
+ fi
40
+
41
+ - name: Publish to npm
42
+ run: npm publish --provenance --access public --tag ${{ steps.npm-tag.outputs.tag }}
43
env:
44
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
45
0 commit comments