Skip to content

Commit 6122f52

Browse files
committed
Create next tag in NPM when prerelease
1 parent de1979b commit 6122f52

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/cd.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@ jobs:
3030
- run: npm ci
3131
- run: npm run build
3232
- run: npm publish
33+
if: "!github.event.release.prerelease"
34+
# npm requires explicitly specifying a "tag" like `next` if the semantic version is a prerelease like `2.0.0-alpha1`
35+
- run: npm publish --tag next
36+
if: github.event.release.prerelease

0 commit comments

Comments
 (0)