88concurrency :
99 group : ${{ github.workflow }}-${{ github.ref }}
1010
11+ permissions :
12+ id-token : write # Required for Trusted publishing
13+ contents : write
14+ pull-requests : write
15+
1116jobs :
1217 release :
1318 name : Release
@@ -32,22 +37,25 @@ jobs:
3237 uses : ./.github/actions/prepare-node
3338 id : prepare-node
3439 with :
35- node-version : 18
36- registry-url : ' https://registry.npmjs.org/'
37- package-manager : ' pnpm'
38- scope : ' @macpaw'
40+ node-version : 20
41+ registry-url : " https://registry.npmjs.org/"
42+ package-manager : " pnpm"
43+ scope : " @macpaw"
44+
45+ # Trusted publishing requires npm CLI version 11.5.1 or later.
46+ - name : Update npm
47+ run : npm install -g npm@latest
3948
4049 - name : Create Release or publish to NPM Registry
4150 id : changesets
4251 uses : changesets/action@v1
4352 with :
4453 publish : pnpm changes:release
45- title : ' ci(changesets): :package: version update for packages'
46- commit : ' chore(release): version update for packages'
54+ title : " ci(changesets): :package: version update for packages"
55+ commit : " chore(release): version update for packages"
4756 setupGitUser : false
4857 env :
4958 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
5159
5260 - name : Generate outputs
5361 id : releaseOutputs
@@ -63,10 +71,10 @@ jobs:
6371 steps :
6472 - name : Cancel previous jobs
657366-
74+
6775 - name : Checkout
6876 uses : actions/checkout@v3
69-
77+
7078 - name : Configure git user
7179 uses : ./.github/actions/github-config
7280 with :
@@ -77,10 +85,10 @@ jobs:
7785 uses : ./.github/actions/prepare-node
7886 id : prepare-node
7987 with :
80- node-version : 18
81- registry-url : https://npm.pkg.github.com/
82- package-manager : ' pnpm'
83- scope : ' @macpaw'
88+ node-version : 20
89+ registry-url : " https://npm.pkg.github.com/"
90+ package-manager : " pnpm"
91+ scope : " @macpaw"
8492
8593 - name : Publish to Github Registry
8694 id : changesets
0 commit comments