Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cannorin committed Jan 11, 2022
1 parent d43484f commit ff40950
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,17 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE: "Build ({sha}) {msg}"

- name: NPM Publish
if: success()
- name: NPM Publish as "latest"
if: success() && !github.event.release.prerelease
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
check-version: true

- name: NPM Publish as "beta"
if: success() && github.event.release.prerelease
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
check-version: true
tag: "beta"

0 comments on commit ff40950

Please sign in to comment.