Skip to content

Commit 31e4d2e

Browse files
committed
set up trusted publishing
1 parent b427fa8 commit 31e4d2e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
release:
88
types: [created]
99

10+
permissions:
11+
id-token: write # Required for OIDC
12+
contents: read
13+
1014
jobs:
1115
publish-npm:
1216
runs-on: ubuntu-latest
@@ -15,8 +19,8 @@ jobs:
1519
- uses: actions/setup-node@v5
1620
with:
1721
node-version: 22
18-
cache: 'npm'
1922
registry-url: https://registry.npmjs.org/
23+
- run: npm install -g npm@latest
2024
- run: npm ci --ignore-scripts --no-audit --no-fund
2125
- run: npx playwright install chromium --only-shell
2226
- run: npm test -- --forbid-only

0 commit comments

Comments
 (0)