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 45b7578 commit be5d2ecCopy full SHA for be5d2ec
.github/workflows/publish.yml
@@ -8,7 +8,7 @@ on:
8
workflow_dispatch:
9
10
permissions:
11
- id-token: write # Required for OIDC trusted publishing
+ id-token: write
12
contents: write
13
14
jobs:
@@ -65,8 +65,14 @@ jobs:
65
- run: npm run build
66
- run: npm test
67
68
- - name: Publish (trusted publishing via OIDC)
69
- run: npm publish
+ - name: Publish
+ run: |
70
+ VERSION=$(node -p "require('./package.json').version")
71
+ if [[ "$VERSION" == *"-"* ]]; then
72
+ npm publish --tag next
73
+ else
74
+ npm publish
75
+ fi
76
77
- name: Create tag
78
run: |
0 commit comments