Skip to content

Commit a8869ba

Browse files
authored
Setup trusted publishing with npm (#360)
1 parent bb57972 commit a8869ba

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/release-npm.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches: [release/*]
66

7+
permissions:
8+
id-token: write
9+
contents: read
10+
711
jobs:
812
publish-npm:
913
name: Publish NPM module
@@ -13,12 +17,11 @@ jobs:
1317
- uses: actions/checkout@v5
1418
- uses: actions/setup-node@v5
1519
with:
16-
node-version: '22.x'
20+
node-version: '24.x'
1721
cache: 'npm'
1822
cache-dependency-path: javascript/package-lock.json
19-
- run: npm install-test
23+
registry-url: 'https://registry.npmjs.org'
24+
- run: npm install-ci-test
25+
working-directory: javascript
26+
- run: npm publish
2027
working-directory: javascript
21-
- uses: cucumber/[email protected]
22-
with:
23-
npm-token: ${{ secrets.NPM_TOKEN }}
24-
working-directory: javascript

0 commit comments

Comments
 (0)