Skip to content

Commit 743352b

Browse files
authored
ci: publish with oidc (#1152)
1 parent 3352f38 commit 743352b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ jobs:
99
runs-on: ubuntu-latest
1010
permissions:
1111
contents: read
12-
id-token: write
12+
id-token: write # Required for OIDC
1313
steps:
1414
- uses: actions/checkout@v5
1515
- uses: actions/setup-node@v4
1616
with:
1717
node-version: '22.x'
1818
registry-url: 'https://registry.npmjs.org'
1919

20+
# Ensure npm 11.5.1 or later is installed
21+
- name: Update npm
22+
run: npm install -g npm@latest
23+
2024
- name: Install Dependencies
2125
run: yarn install --frozen-lockfile --ignore-scripts
2226

2327
- name: Publish to NPM (beta)
2428
if: 'github.event.release.prerelease'
25-
run: npm publish --provenance --access public --tag beta
26-
env:
27-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
29+
run: npm publish --access public --tag beta
2830

2931
- name: Publish to NPM (stable)
3032
if: '!github.event.release.prerelease'
31-
run: npm publish --provenance --access public
32-
env:
33-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
run: npm publish --access public

0 commit comments

Comments
 (0)