-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (40 loc) · 1.29 KB
/
publish.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Publish to NPM
on:
push:
branches:
- "main"
jobs:
build-and-publish:
runs-on: ubuntu-latest
environment: publish
steps:
- name: Checkout the repo
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
fetch-depth: 0
- name: Setup Node 18.x
uses: actions/setup-node@v3
with:
node-version: 18.12
always-auth: true
- name: Install PNPM
run: npm install -g pnpm@9.4.0
shell: bash
- name: Install dependencies
run:
pnpm install --frozen-lockfile --strict-peer-dependencies --filter=ccip-js --filter=ccip-react-components
shell: bash
- name: Publish ccip-js to NPM
run: |
pnpm build-ccip-js
cd packages/ccip-js
pnpm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_CCIP_JAVASCRIPT_SDK }}
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_JAVASCRIPT_SDK }}
pnpm publish --no-git-checks --access public
shell: bash