Skip to content

Commit ff40950

Browse files
committed
Update publish.yml
1 parent d43484f commit ff40950

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,17 @@ jobs:
6262
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6363
MESSAGE: "Build ({sha}) {msg}"
6464

65-
- name: NPM Publish
66-
if: success()
65+
- name: NPM Publish as "latest"
66+
if: success() && !github.event.release.prerelease
67+
uses: JS-DevTools/npm-publish@v1
68+
with:
69+
token: ${{ secrets.NPM_TOKEN }}
70+
check-version: true
71+
72+
- name: NPM Publish as "beta"
73+
if: success() && github.event.release.prerelease
6774
uses: JS-DevTools/npm-publish@v1
6875
with:
6976
token: ${{ secrets.NPM_TOKEN }}
7077
check-version: true
78+
tag: "beta"

0 commit comments

Comments
 (0)