-
Notifications
You must be signed in to change notification settings - Fork 4
80 lines (75 loc) · 2.43 KB
/
cd.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: CD
on:
workflow_dispatch:
inputs:
tag:
description: 'NPM tag to use'
type: choice
required: true
options:
- next
- latest
client-wasm:
description: 'Publish @nillion/client-wasm'
type: boolean
default: false
client-vms:
description: 'Publish @nillion/client-vms'
type: boolean
default: false
client-react-hooks:
description: 'Publish @nillion/client-react-hooks'
type: boolean
default: false
concurrency:
group: "publish"
cancel-in-progress: true
jobs:
publish-client-wasm:
if: github.event.inputs.client-wasm == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "23"
registry-url: "https://registry.npmjs.org"
- uses: pnpm/action-setup@v4
- run: pnpm install
- run: pnpm --filter "@nillion/client-wasm" build
- env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm --filter "@nillion/client-wasm" publish --tag ${{ github.event.inputs.tag }}
publish-client-vms:
if: github.event.inputs.client-vms == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "23"
registry-url: "https://registry.npmjs.org"
- uses: pnpm/action-setup@v4
- run: pnpm install
- run: pnpm --filter "@nillion/client-vms" build:proto
- run: pnpm --filter "@nillion/client-vms" build
- env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm --filter "@nillion/client-vms" publish --tag ${{ github.event.inputs.tag }}
publish-client-react-hooks:
if: github.event.inputs.client-react-hooks == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "23"
registry-url: "https://registry.npmjs.org"
- uses: pnpm/action-setup@v4
- run: pnpm install
- run: pnpm --filter "@nillion/client-vms" build:proto
- run: pnpm --filter "@nillion/client-vms" build
- run: pnpm --filter "@nillion/client-react-hooks" build
- env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm --filter "@nillion/client-react-hooks" publish --tag ${{ github.event.inputs.tag }}