Skip to content

Commit ea303a9

Browse files
author
Thomas De Meyer
committed
chore: allow for trusted publishing
1 parent 58a34c9 commit ea303a9

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
needs: lint
2525
strategy:
2626
matrix:
27-
node: ["20.x", "22.x"]
28-
os: [ubuntu-latest]
27+
node: ["20.x", "22.x", "24.x"]
28+
os: [ubuntu-latest, windows-latest, macOS-latest]
2929

3030
steps:
3131
- name: Checkout repo
@@ -57,6 +57,12 @@ jobs:
5757
- name: Set up Node.js
5858
uses: labd/gh-actions-typescript/pnpm-install@main
5959

60+
- name: Run build
61+
run: pnpm build
62+
63+
- name: Upgrade npm for trusted publishing
64+
run: npm i -g npm@^11.6.4
65+
6066
- name: Create and publish versions
6167
uses: changesets/action@v1
6268
with:
@@ -66,5 +72,4 @@ jobs:
6672
version: pnpm publish:version
6773
env:
6874
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
70-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
75+
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)