Skip to content

Commit 7849cfd

Browse files
committed
fix: manage prerelease correctly
1 parent 29cc497 commit 7849cfd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
- run: npm ci
2727
- run: npm run compile
2828
- run: npm test
29+
- run: npx [email protected] publish from-git -y --no-verify-access --dist-tag=next
30+
if: "contains(github.ref, '-pre.')"
31+
env:
32+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2933
- run: npx [email protected] publish from-git -y --no-verify-access
34+
if: "!contains(github.ref, '-pre.')"
3035
env:
3136
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)