-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathaction.yml
More file actions
39 lines (32 loc) · 1.08 KB
/
Copy pathaction.yml
File metadata and controls
39 lines (32 loc) · 1.08 KB
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
name: "Setup Wagmi"
description: "Prepare Wagmi repository and all dependencies"
runs:
using: "composite"
steps:
- name: Clone wagmi repo
shell: bash
run: gh repo clone wevm/wagmi
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
package_json_file: ./wagmi/package.json
- name: Set up node
uses: actions/setup-node@v4
with:
cache: pnpm
cache-dependency-path: ./wagmi/pnpm-lock.yaml
- name: Build viem
shell: bash
run: pnpm build
- shell: bash
working-directory: ./wagmi
run: |
node -e "import fs from 'fs'; const p = JSON.parse(fs.readFileSync('./package.json', 'utf8')); p.pnpm = p.pnpm || {}; p.pnpm.overrides = p.pnpm.overrides || {}; p.pnpm.overrides.viem = 'file:../src'; fs.writeFileSync('package.json', JSON.stringify(p, null, 2));"
- name: Install dependencies
shell: bash
run: pnpm install --no-frozen-lockfile
working-directory: ./wagmi
- name: Link packages
shell: bash
run: pnpm preconstruct
working-directory: ./wagmi