Skip to content

Commit 286bc70

Browse files
authored
Merge pull request #71 from forcedotcom/npm-oidc-change
Update publish-npm-package.yml
2 parents 708e92a + e75d416 commit 286bc70

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish-npm-package.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
publish:
1616
if: github.event.pull_request.merged == true
1717
runs-on: ubuntu-latest
18+
permissions:
19+
contents: write
20+
id-token: write # Required for OIDC authentication
1821
steps:
1922
- name: Checkout Git Repository
2023
uses: actions/checkout@v3
@@ -37,5 +40,4 @@ jobs:
3740
3841
- name: Publish npm package to registry
3942
run: npm publish
40-
env:
41-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
43+

0 commit comments

Comments
 (0)