Skip to content

Commit 1697abc

Browse files
committed
fix: remove setup-node registry-url to fix trusted publishing token conflict
1 parent 200eea4 commit 1697abc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
uses: actions/setup-node@v4
2020
with:
2121
node-version: '20'
22-
registry-url: 'https://registry.npmjs.org'
2322

2423
- name: Install dependencies
2524
run: yarn install
@@ -31,6 +30,7 @@ jobs:
3130
# It will only publish if the version in package.json is new
3231
# Note: Trusted Publishing requires permissions: id-token: write
3332
run: |
33+
npm config set registry https://registry.npmjs.org/
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

0 commit comments

Comments
 (0)