From 9afcb398ca3eba189c573472175d7b23806a9a9b Mon Sep 17 00:00:00 2001 From: claude-code-best Date: Wed, 20 May 2026 09:34:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20bun=20publish=20=E9=80=9A=E8=BF=87=20~/.?= =?UTF-8?q?npmrc=20=E9=85=8D=E7=BD=AE=20registry=20=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish-npm.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 42141a38e..6e2fddd41 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -37,10 +37,14 @@ jobs: - name: Run tests run: bun test + - name: Configure npm registry auth + run: | + cat > ~/.npmrc << EOF + //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} + EOF + - name: Publish to npm run: bun publish --access public - env: - BUN_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Generate changelog id: changelog