File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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
@@ -46,16 +46,27 @@ jobs:
4646 timeout-minutes : 15
4747 runs-on : ubuntu-latest
4848 if : github.ref == 'refs/heads/main'
49+ environment : release
4950 needs : build
51+ permissions :
52+ id-token : write
53+ contents : write
54+ pull-requests : write
5055 steps :
5156 - name : Checkout
52- uses : actions/checkout@v4
57+ uses : actions/checkout@v6
5358 with :
5459 fetch-depth : 0
5560
5661 - name : Set up Node.js
5762 uses : labd/gh-actions-typescript/pnpm-install@main
5863
64+ - name : Run build
65+ run : pnpm build
66+
67+ - name : Upgrade npm for trusted publishing
68+ run : npm i -g npm@^11.6.4
69+
5970 - name : Create and publish versions
6071 uses : changesets/action@v1
6172 with :
6576 version : pnpm publish:version
6677 env :
6778 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
68- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
69- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
79+ NPM_CONFIG_PROVENANCE : true
You can’t perform that action at this time.
0 commit comments