Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,26 @@ jobs:
environment: publish
permissions:
contents: read
id-token: write
steps:
- name: Checkout the repo
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
fetch-depth: 0

- name: Setup Node 20.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.19
always-auth: true
registry-url: https://registry.npmjs.org

- name: Update npm for trusted publishing
run: npm install -g npm@latest
shell: bash

- name: Install PNPM
run: npm install -g pnpm@9.4.0
run: npm install -g pnpm@10
shell: bash

- name: Install dependencies
Expand All @@ -40,15 +46,13 @@ jobs:
run: |
pnpm build-ccip-js
cd packages/ccip-js
pnpm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_CCIP_JS }}
pnpm publish --no-git-checks --access public
shell: bash

- name: Publish ccip-react-components to NPM
run: |
pnpm build-components
cd packages/ccip-react-components
pnpm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_CCIP_REACT_COMPONENTS }}
pnpm publish --no-git-checks --access public
shell: bash

Expand All @@ -57,20 +61,26 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout the repo
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
fetch-depth: 0

- name: Setup Node 20.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.19
always-auth: true
registry-url: https://registry.npmjs.org

- name: Update npm for trusted publishing
run: npm install -g npm@latest
shell: bash

- name: Install PNPM
run: npm install -g pnpm@9.4.0
run: npm install -g pnpm@10
shell: bash

- name: Install dependencies
Expand Down
5 changes: 5 additions & 0 deletions packages/ccip-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
"name": "@chainlink/ccip-js",
"version": "0.2.7",
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/smartcontractkit/ccip-javascript-sdk",
"directory": "packages/ccip-js"
},
"main": "dist/api.js",
"types": "dist/api.d.ts",
"type": "module",
Expand Down
5 changes: 5 additions & 0 deletions packages/ccip-react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
"name": "@chainlink/ccip-react-components",
"private": false,
"version": "0.3.2",
"repository": {
"type": "git",
"url": "https://github.com/smartcontractkit/ccip-javascript-sdk",
"directory": "packages/ccip-react-components"
},
"type": "module",
"main": "./dist/index.umd.js",
"module": "./dist/index.es.js",
Expand Down
Loading