We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfd55c3 commit e2af049Copy full SHA for e2af049
1 file changed
.github/workflows/release.yml
@@ -31,9 +31,10 @@ jobs:
31
# It will only publish if the version in package.json is new
32
# Note: Trusted Publishing requires permissions: id-token: write
33
run: |
34
- # setup-node creates an .npmrc with an empty token which breaks Trusted Publishing
35
- # We need to remove it but keep the registry configuration
36
- rm -f .npmrc
+ # setup-node sets NPM_CONFIG_USERCONFIG to a file with an empty token
+ # We need to unset it to allow Trusted Publishing to work
+ unset NPM_CONFIG_USERCONFIG
37
+
38
npm config set registry https://registry.npmjs.org/
39
40
PACKAGE_NAME=$(node -p "require('./package.json').name")
0 commit comments