Skip to content

Commit 1abc0da

Browse files
committed
chore(release): attempt shell unset syntax for npm token
back to actual tokens vs OIDC trusted publish if this doesn't work I suppose
1 parent 21c1402 commit 1abc0da

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343
git config --global user.email '[email protected]'
4444
- name: Publish Packages
4545
run: |
46+
# Clear NPM token from actions/setup-node default value,
47+
# or token-less OIDC publishing will fail, see: https://github.com/actions/setup-node/issues/1440
48+
unset NODE_AUTH_TOKEN
4649
npx envinfo
4750
echo "Verifying working directory is clean..."
4851
git diff --exit-code
@@ -54,9 +57,7 @@ jobs:
5457
echo "No changes detected, no versions bumped."
5558
fi
5659
echo "Syncing unpublished versions with package registry..."
57-
# You do have to clear it from the actions/setup-node default value though,
58-
# or publishing will fail, see: https://github.com/actions/setup-node/issues/1440
59-
NODE_AUTH_TOKEN="" yarn lerna publish from-package --yes --loglevel trace
60+
yarn lerna publish from-package --yes --loglevel trace
6061
env:
6162
# No NPM token needed, all of the packages have been configured
6263
# on npmjs.com with this workflow file as an OIDC "Trusted Publisher"

0 commit comments

Comments
 (0)