ci: Tag prerelease (#531)
Tags prerelease when running `npm publish` in GitHub Action to fix errors
This commit is contained in:
@@ -24,7 +24,14 @@ jobs:
|
|||||||
- name: Yarn Run Build
|
- name: Yarn Run Build
|
||||||
run: yarn run build
|
run: yarn run build
|
||||||
|
|
||||||
|
- name: Npm Publish Pre-Release!
|
||||||
|
if: github.event.release.prerelease
|
||||||
|
run: npm publish --tag next
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
- name: Npm Publish!
|
- name: Npm Publish!
|
||||||
|
if: ${{ !github.event.release.prerelease }}
|
||||||
run: npm publish
|
run: npm publish
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user