From 7221df43da4469b8763ce3a45493c22cd421b07d Mon Sep 17 00:00:00 2001 From: sua yoo Date: Mon, 6 Jul 2026 15:51:39 -0700 Subject: [PATCH] ci: Tag prerelease (#531) Tags prerelease when running `npm publish` in GitHub Action to fix errors --- .github/workflows/npm-release.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/npm-release.yaml b/.github/workflows/npm-release.yaml index f5f0d93..3e0377f 100644 --- a/.github/workflows/npm-release.yaml +++ b/.github/workflows/npm-release.yaml @@ -24,7 +24,14 @@ jobs: - name: 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! + if: ${{ !github.event.release.prerelease }} run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}