From fcdc9879757c5331df1efd95375914768a7e1594 Mon Sep 17 00:00:00 2001 From: Jorben Date: Wed, 11 Feb 2026 17:23:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=F0=9F=90=9B=20skip=20lifecycle=20sc?= =?UTF-8?q?ripts=20during=20npm=20publish=20in=20release=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `publish` script in package.json (`node scripts/publish.js`) is designed for local publishing and expects `NPM_TOKEN` env var, but the workflow sets `NODE_AUTH_TOKEN`. Adding `--ignore-scripts` avoids triggering the local publish script, since the workflow already handles version setting, dependency adjustment, and building independently. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 71ec54c..968d470 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -119,6 +119,6 @@ jobs: echo "Updated package.json for npm publish" - name: Publish to npm - run: npm publish --access public + run: npm publish --access public --ignore-scripts env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}