Skip to content

Commit 14921eb

Browse files
committed
ci: enable oidc publish
1 parent ed0c37e commit 14921eb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/publish-release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
name: Install and publish
77
runs-on: ubuntu-latest
88
permissions:
9-
id-token: write
9+
id-token: write # Required for OIDC
1010
contents: write # allows this workflow to commit to the repo
1111
steps:
1212
- name: Checkout
@@ -24,6 +24,7 @@ jobs:
2424
uses: actions/setup-node@v4
2525
with:
2626
node-version: 'lts/*'
27+
registry-url: 'https://registry.npmjs.org'
2728

2829
- name: Enable Corepack and Use Correct Yarn Version
2930
run: |
@@ -68,9 +69,6 @@ jobs:
6869
- name: Build lib
6970
run: yarn prepare
7071

71-
- name: Authenticate with registry
72-
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_AUTOMATION_TOKEN }}
73-
7472
- name: Publish
7573
run: |
7674
chmod +x ./scripts/add_build_number.sh

0 commit comments

Comments
 (0)