@@ -15,20 +15,26 @@ jobs:
1515 environment : publish
1616 permissions :
1717 contents : read
18+ id-token : write
1819 steps :
1920 - name : Checkout the repo
2021 uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
2122 with :
2223 fetch-depth : 0
2324
2425 - name : Setup Node 20.x
25- uses : actions/setup-node@v3
26+ uses : actions/setup-node@v4
2627 with :
2728 node-version : 20.19
2829 always-auth : true
30+ registry-url : https://registry.npmjs.org
31+
32+ - name : Update npm for trusted publishing
33+ run : npm install -g npm@latest
34+ shell : bash
2935
3036 - name : Install PNPM
31- run : npm install -g pnpm@9.4.0
37+ run : npm install -g pnpm@10
3238 shell : bash
3339
3440 - name : Install dependencies
@@ -40,15 +46,13 @@ jobs:
4046 run : |
4147 pnpm build-ccip-js
4248 cd packages/ccip-js
43- pnpm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_CCIP_JS }}
4449 pnpm publish --no-git-checks --access public
4550 shell : bash
4651
4752 - name : Publish ccip-react-components to NPM
4853 run : |
4954 pnpm build-components
5055 cd packages/ccip-react-components
51- pnpm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_CCIP_REACT_COMPONENTS }}
5256 pnpm publish --no-git-checks --access public
5357 shell : bash
5458
@@ -57,20 +61,26 @@ jobs:
5761 runs-on : ubuntu-latest
5862 permissions :
5963 contents : read
64+ id-token : write
6065 steps :
6166 - name : Checkout the repo
6267 uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
6368 with :
6469 fetch-depth : 0
6570
6671 - name : Setup Node 20.x
67- uses : actions/setup-node@v3
72+ uses : actions/setup-node@v4
6873 with :
6974 node-version : 20.19
7075 always-auth : true
76+ registry-url : https://registry.npmjs.org
77+
78+ - name : Update npm for trusted publishing
79+ run : npm install -g npm@latest
80+ shell : bash
7181
7282 - name : Install PNPM
73- run : npm install -g pnpm@9.4.0
83+ run : npm install -g pnpm@10
7484 shell : bash
7585
7686 - name : Install dependencies
0 commit comments