Skip to content

Commit 2a36da1

Browse files
committed
revert: remove NPM_TOKEN auth step (OIDC is sufficient)
1 parent 684cf56 commit 2a36da1

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

.github/workflows/npmpublish.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,12 @@ jobs:
3636
- name: Upgrade npm for OIDC support (requires >=11.5.1)
3737
run: npm install -g npm@latest
3838
- run: npm i --legacy-peer-deps
39-
- name: Configure npm auth
40-
run: |
41-
if [[ -n "${{ secrets.NPM_TOKEN }}" ]]; then
42-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
43-
fi
4439
- name: Publish to npm
4540
run: |
4641
if [[ "${{ github.ref }}" == *-beta ]]; then
47-
npm publish --tag beta --provenance
42+
npm publish --tag beta
4843
elif [[ "${{ github.ref }}" == *-lts ]]; then
49-
npm publish --tag lts --provenance
44+
npm publish --tag lts
5045
else
51-
npm publish --provenance
46+
npm publish
5247
fi

0 commit comments

Comments
 (0)