Skip to content

Commit 586c795

Browse files
Clear the node token before publishing (#9)
1 parent e76828c commit 586c795

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ jobs:
3838
npm ci
3939
npm run build
4040
41+
# See https://github.com/orgs/community/discussions/176761. `setup-node` was messing with
42+
# node authentication. This breaks publishing unless we clear the token.
43+
- name: Clear auth token for OIDC
44+
run: echo "NODE_AUTH_TOKEN=" >> $GITHUB_ENV
45+
4146
# https://hackernoon.com/how-to-automatically-publish-your-npm-package-using-github-actions
4247
# Here we actually use `npm version from-git`, but just never commit the version.
4348
- name: Update package.json with release tag

0 commit comments

Comments
 (0)