ci: Tag prerelease (#531)

Tags prerelease when running `npm publish` in GitHub Action to fix errors
This commit is contained in:
sua yoo
2026-07-06 15:51:39 -07:00
committed by GitHub
parent b3f3df109d
commit 7221df43da
+7
View File
@@ -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 }}