Skip to content

Commit c6efd5a

Browse files
committed
use OIDC configuration and remove token based authentication
1 parent 9da81ff commit c6efd5a

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,32 @@ name: Publish packages
55

66
on:
77
push:
8-
branches:
9-
- master
10-
- debug-npm-auth
8+
branches:
9+
- master
10+
- debug-npm-auth
1111

12-
workflow_dispatch:
12+
permissions:
13+
id-token: write
14+
contents: read
1315

1416
env:
15-
NODE_VERSION: 18.x
17+
NODE_VERSION: 20.x
1618

1719
jobs:
1820
publish-npm:
1921
runs-on: ubuntu-latest
20-
env:
21-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
22+
2223
steps:
2324
- uses: actions/checkout@v4
25+
2426
- uses: actions/setup-node@v4
2527
with:
2628
node-version: ${{ env.NODE_VERSION }}
2729
registry-url: https://registry.npmjs.org/
30+
2831
- run: npm ci
32+
2933
- run: npm run lerna:build
30-
- name: Check npm auth
31-
run: |
32-
npm whoami
33-
npm config get registry
34+
35+
- run: npm run lerna:publish
3436

0 commit comments

Comments
 (0)