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] 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 }}