Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ jobs:

- run: npm test

- name: Clear .npmrc auth token for OIDC flow
- name: Publish with OIDC auth
run: |
if [ -f "$NPM_CONFIG_USERCONFIG" ]; then
grep -v 'authToken' "$NPM_CONFIG_USERCONFIG" > /tmp/.npmrc.clean
mv /tmp/.npmrc.clean "$NPM_CONFIG_USERCONFIG"
fi

- run: npm publish --provenance --access public
unset NODE_AUTH_TOKEN
npm publish --provenance --access public
Loading