Skip to content

Commit 3442426

Browse files
committed
ci: resolve npm publish permission issues
1 parent 22e5635 commit 3442426

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,8 @@ jobs:
379379

380380
- name: Checkout
381381
uses: actions/checkout@v6
382+
with:
383+
persist-credentials: false
382384

383385
- name: Get bot user ID
384386
id: bot-user-id
@@ -407,6 +409,7 @@ jobs:
407409
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
408410
env:
409411
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
412+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
410413
SEMANTIC_RELEASE_PACKAGE: ${{ github.event.repository.name }}
411414
GIT_AUTHOR_EMAIL: "${{ steps.bot-user-id.outputs.user-id }}+${{ steps.generate_token.outputs.app-slug }}[bot]@users.noreply.github.com"
412415
GIT_COMMITTER_EMAIL: "${{ steps.bot-user-id.outputs.user-id }}+${{ steps.generate_token.outputs.app-slug }}[bot]@users.noreply.github.com"

0 commit comments

Comments
 (0)