Skip to content

Commit 21838df

Browse files
committed
ci: Switch to OIDC trusted publishing (no npm token needed)
1 parent 272bbbf commit 21838df

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
- name: Setup Node.js
6868
uses: actions/setup-node@v4
6969
with:
70-
node-version: '20.x'
70+
node-version: '22.x'
7171
registry-url: 'https://registry.npmjs.org'
7272
cache: 'npm'
7373

@@ -95,11 +95,9 @@ jobs:
9595
echo "Will publish $LOCAL_VERSION (npm has $NPM_VERSION)"
9696
fi
9797
98-
- name: Publish to npm
98+
- name: Publish to npm (OIDC trusted publishing)
9999
if: steps.version_check.outputs.should_publish == 'true'
100100
run: npm publish --provenance --access public
101-
env:
102-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
103101

104102
- name: Create git tag
105103
if: steps.version_check.outputs.should_publish == 'true'

0 commit comments

Comments
 (0)