Skip to content

Commit df09465

Browse files
authored
Modify GitHub Actions workflow for npm publish (#7582)
1 parent d1cbbd5 commit df09465

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/npm.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ on:
44
release:
55
types: [published]
66

7-
permissions: read-all
7+
permissions:
8+
contents: read
9+
id-token: write
810

911
jobs:
1012
build_and_publish:
@@ -31,5 +33,4 @@ jobs:
3133
run: |
3234
set -ex
3335
cd js/ccf-app
34-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
3536
npm publish microsoft-ccf-app*.tgz --access public

0 commit comments

Comments
 (0)