We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1036772 commit 2517887Copy full SHA for 2517887
2 files changed
.github/workflows/publish.yml
@@ -49,11 +49,15 @@ jobs:
49
run: |
50
npm version "${{ steps.release_version.outputs.version }}" --no-git-tag-version
51
52
- - name: Debug npm config
53
- run: |
54
- npm config list
55
- echo "---"
56
- cat ~/.npmrc 2>/dev/null || echo "No ~/.npmrc found"
+ - name: Get OIDC token
+ id: oidc
+ uses: actions/github-script@v7
+ with:
+ script: |
57
+ const token = await core.getIDToken('https://registry.npmjs.org');
58
+ core.setOutput('token', token);
59
60
- name: Publish to npm (Trusted Publishing)
61
run: npm publish --access public --provenance
62
+ env:
63
+ NODE_AUTH_TOKEN: ${{ steps.oidc.outputs.token }}
.npmrc
0 commit comments