Skip to content

Commit 3c89db0

Browse files
authored
Setup trusted publishing with npm (#2656)
1 parent 0d46a64 commit 3c89db0

File tree

6 files changed

+10
-33
lines changed

6 files changed

+10
-33
lines changed
File renamed without changes.
File renamed without changes.

.github/workflows/release-npm-latest.yaml

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
name: Release NPM (next)
1+
name: Release NPM
22

33
on:
44
push:
5-
branches: [release/*-rc*]
5+
branches: [release/*]
6+
7+
permissions:
8+
id-token: write
9+
contents: read
610

711
jobs:
812
publish-npm:
@@ -13,11 +17,9 @@ jobs:
1317
- uses: actions/checkout@v5
1418
- uses: actions/setup-node@v5
1519
with:
16-
node-version: '22'
20+
node-version: '24.x'
1721
cache: 'npm'
1822
cache-dependency-path: package-lock.json
19-
- run: npm install-test
20-
- uses: cucumber/[email protected]
21-
with:
22-
npm-token: ${{ secrets.NPM_TOKEN }}
23-
npm-tag: 'next'
23+
registry-url: 'https://registry.npmjs.org'
24+
- run: npm install-ci-test
25+
- run: npm publish
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)