Skip to content

Commit 3abd455

Browse files
authored
Setup trusted publishing with npm (#72)
1 parent 11e2452 commit 3abd455

File tree

1 file changed

+10
-19
lines changed

1 file changed

+10
-19
lines changed

.github/workflows/release-npm.yml

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,25 @@
1-
name: Release npm module
1+
name: Release NPM
22

33
on:
44
push:
5-
branches:
6-
- release/*
5+
branches: [release/*]
76

8-
jobs:
9-
pre-release-check:
10-
uses: cucumber/.github/.github/workflows/prerelease-checks.yml@main
11-
12-
test-javascript:
13-
uses: ./.github/workflows/test.yml
7+
permissions:
8+
id-token: write
9+
contents: read
1410

11+
jobs:
1512
publish-npm:
1613
name: Publish NPM module
17-
needs: [pre-release-check, test-javascript]
1814
runs-on: ubuntu-latest
1915
environment: Release
20-
2116
steps:
2217
- uses: actions/checkout@v5
23-
2418
- uses: actions/setup-node@v5
2519
with:
26-
node-version: "22.x"
27-
cache: "npm"
20+
node-version: '24.x'
21+
cache: 'npm'
2822
cache-dependency-path: package-lock.json
29-
23+
registry-url: 'https://registry.npmjs.org'
3024
- run: npm install-ci-test
31-
32-
- uses: cucumber/[email protected]
33-
with:
34-
npm-token: ${{ secrets.NPM_TOKEN }}
25+
- run: npm publish

0 commit comments

Comments
 (0)