Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.

Commit 72b2d01

Browse files
authored
Merge pull request #50 from smartcontractkit/deprecation-notice
[For Package Deprecation] Migrate to npm trusted publishing (OIDC)
2 parents 8bbb8aa + 53ba186 commit 72b2d01

File tree

3 files changed

+26
-6
lines changed

3 files changed

+26
-6
lines changed

.github/workflows/publish.yaml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

packages/ccip-js/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
"name": "@chainlink/ccip-js",
33
"version": "0.2.7",
44
"private": false,
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/smartcontractkit/ccip-javascript-sdk",
8+
"directory": "packages/ccip-js"
9+
},
510
"main": "dist/api.js",
611
"types": "dist/api.d.ts",
712
"type": "module",

packages/ccip-react-components/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
"name": "@chainlink/ccip-react-components",
33
"private": false,
44
"version": "0.3.2",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/smartcontractkit/ccip-javascript-sdk",
8+
"directory": "packages/ccip-react-components"
9+
},
510
"type": "module",
611
"main": "./dist/index.umd.js",
712
"module": "./dist/index.es.js",

0 commit comments

Comments
 (0)