Skip to content

Commit aedab6b

Browse files
committed
fix: explicit .npmrc creation and verbose publish logging
1 parent 1697abc commit aedab6b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ jobs:
3030
# It will only publish if the version in package.json is new
3131
# Note: Trusted Publishing requires permissions: id-token: write
3232
run: |
33-
npm config set registry https://registry.npmjs.org/
33+
echo "registry=https://registry.npmjs.org/" > .npmrc
3434
PACKAGE_NAME=$(node -p "require('./package.json').name")
3535
PACKAGE_VERSION=$(node -p "require('./package.json').version")
3636
if npm view "$PACKAGE_NAME" version | grep -q "$PACKAGE_VERSION"; then
3737
echo "Version $PACKAGE_VERSION already exists on NPM. Skipping publish."
3838
else
39-
npm publish --provenance --access public
39+
npm publish --provenance --access public --verbose --registry https://registry.npmjs.org/
4040
fi

0 commit comments

Comments
 (0)