From 675ebea84651a95ec8b770b1fc0931e540b59bd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=87=AF90331?= <90331@sangfor.com> Date: Fri, 15 May 2026 11:14:12 +0800 Subject: [PATCH 1/2] ci(publish-npm): switch from vite build to default build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace bun run build:vite with bun run build in the publish workflow. Signed-off-by: 林凯90331 <90331@sangfor.com> Co-authored-by: CoStrict --- .github/workflows/publish-npm.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 6436fccce..dae555a85 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -107,8 +107,8 @@ jobs: # - name: Run tests # run: bun test - - name: Build for publish (Vite) - run: bun run build:vite + - name: Build for publish + run: bun run build - name: Publish to npm if: ${{ github.event.inputs.dry_run != 'true' }} From 0641c2857f191795e8831fda54692f9ebe2be107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=87=AF90331?= <90331@sangfor.com> Date: Fri, 15 May 2026 11:17:07 +0800 Subject: [PATCH 2/2] ci(publish-npm): remove --ignore-scripts from publish command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allow lifecycle scripts to run during npm publish for both actual and dry-run releases. Signed-off-by: 林凯90331 <90331@sangfor.com> Co-authored-by: CoStrict --- .github/workflows/publish-npm.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index dae555a85..29de3a6af 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -112,13 +112,13 @@ jobs: - name: Publish to npm if: ${{ github.event.inputs.dry_run != 'true' }} - run: npm publish --provenance --access public --ignore-scripts + run: npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Publish to npm (dry-run) if: ${{ github.event.inputs.dry_run == 'true' }} - run: npm publish --dry-run --provenance --access public --ignore-scripts + run: npm publish --dry-run --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}