From 9539c03ce6b801deb375d6b7d95cb1f35c6a9971 Mon Sep 17 00:00:00 2001 From: typicode Date: Mon, 19 Aug 2024 15:20:15 +0200 Subject: [PATCH] fix: npm-publish.yml --- .github/workflows/npm-publish.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index fcdb580a..10707c7e 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -24,6 +24,8 @@ jobs: publish-npm: needs: build runs-on: ubuntu-latest + permissions: + id-token: write steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -33,4 +35,4 @@ jobs: - run: npm ci - run: npm publish --provenance --access public env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}