Skip to content

Commit 201dc99

Browse files
committed
CI: update workflow for NPM trusted publishing
1 parent e24aa41 commit 201dc99

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: QWC2 Build
22
on: [push]
33

4+
permissions:
5+
id-token: write # Required for OIDC
6+
contents: write
7+
48
jobs:
59
build:
610
runs-on: ubuntu-latest
@@ -97,9 +101,8 @@ jobs:
97101
- name: Publish to NPM
98102
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
99103
run: |
104+
npm install -g npm@latest
100105
npm run dist
101106
pushd dist
102107
npm publish
103108
popd
104-
env:
105-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)