-
Notifications
You must be signed in to change notification settings - Fork 107
61 lines (49 loc) · 1.32 KB
/
npm-publish.yml
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
name: npm-publish
on:
release:
types: [published]
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
jobs:
publish:
runs-on: snowbridge-runner
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Build Contracts
working-directory: contracts
run: |
forge build
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Build Contract Types
working-directory: web/packages/contract-types
run: |
pnpm install
pnpm typechain
pnpm build
- name: Build API
working-directory: web/packages/api
run: |
pnpm install
pnpm build
- name: Publish Contract Types
working-directory: web/packages/contract-types
run: |
pnpm publish --no-git-checks --access public
- name: Publish API
working-directory: web/packages/api
run: |
pnpm publish --no-git-checks --access public