Skip to content

Commit 21c1402

Browse files
committed
chore(release): use inline NPM token clear style
1 parent 3ac6858 commit 21c1402

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ jobs:
5454
echo "No changes detected, no versions bumped."
5555
fi
5656
echo "Syncing unpublished versions with package registry..."
57-
yarn lerna publish from-package --yes --loglevel trace
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
5860
env:
5961
# No NPM token needed, all of the packages have been configured
6062
# on npmjs.com with this workflow file as an OIDC "Trusted Publisher"
61-
# You do have to clear it from the actions/setup-node default value though,
62-
# or publishing will fail, see: https://github.com/actions/setup-node/issues/1440
63-
NODE_AUTH_TOKEN: ""
63+
#
6464
# org admin Github Token required for the changelog/tag commit+push
6565
# to work via an exception to branch protection rules
6666
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)