Skip to content

Commit 72f2420

Browse files
committedAug 27, 2024
feat: add build workflow
1 parent 56483a7 commit 72f2420

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
 

‎.github/workflows/build.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-22.04
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: pnpm/action-setup@v4
19+
with:
20+
version: 9
21+
22+
- name: Use Node.js 20
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 20
26+
cache: "pnpm"
27+
28+
- name: Install Foundry
29+
uses: foundry-rs/foundry-toolchain@v1
30+
with:
31+
version: nightly
32+
33+
- name: Install
34+
run: |
35+
pnpm install --frozen-lockfile --prefer-offline
36+
37+
- name: Copy .env
38+
run: |
39+
cp .env.example .env
40+
working-directory: packages/interface
41+
42+
- name: Build
43+
run: |
44+
pnpm run build

0 commit comments

Comments
 (0)