Skip to content

Commit 18e7413

Browse files
committed
updating permissions again
1 parent 466b564 commit 18e7413

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/_publish-npm.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ on:
2828
default: true
2929
type: boolean
3030

31+
permissions:
32+
contents: write
33+
id-token: write
34+
3135
jobs:
3236
npm-publish:
3337
permissions:
@@ -44,10 +48,10 @@ jobs:
4448
with:
4549
node-version: ${{ inputs.node_version }}
4650
cache: "pnpm"
47-
- name: Authenticate with Registry
48-
run: echo -e "\n//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
49-
env:
50-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
51+
# - name: Authenticate with Registry
52+
# run: echo -e "\n//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
53+
# env:
54+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5155
- run: pnpm i --frozen-lockfile
5256
- uses: nick-invision/retry@v2
5357
with:

0 commit comments

Comments
 (0)