File tree 7 files changed +17725
-25912
lines changed
actions/install-dependencies
7 files changed +17725
-25912
lines changed Original file line number Diff line number Diff line change
1
+ name : " Install dependencies"
2
+ description : " Prepare repository and all dependencies"
3
+
4
+ runs :
5
+ using : " composite"
6
+ steps :
7
+ - name : Set up pnpm
8
+ uses : pnpm/action-setup@v2
9
+ with :
10
+ version : latest
11
+
12
+ - name : Set up node
13
+ uses : actions/setup-node@v3
14
+ with :
15
+ cache : pnpm
16
+ node-version : " lts/*"
17
+
18
+ - name : Install dependencies
19
+ shell : bash
20
+ run : |
21
+ pnpm install --frozen-lockfile --ignore-scripts
22
+ pnpm --dir ./package install --frozen-lockfile --ignore-scripts
23
+
24
+ - name : Build packages
25
+ shell : bash
26
+ run : pnpm build
Original file line number Diff line number Diff line change @@ -17,23 +17,16 @@ jobs:
17
17
uses : actions/setup-node@v3
18
18
with :
19
19
node-version : " lts/*"
20
- - name : Yarn 2 setup
21
- run : |
22
- corepack enable
23
- corepack prepare yarn@stable --activate
24
- yarn set version stable
25
20
- name : Install dependencies
26
- run : |
27
- yarn install --immutable
28
- yarn ./package install --immutable
21
+ uses : ./.github/actions/install-dependencies
29
22
- name : Lint
30
23
run : |
31
- yarn lint
32
- yarn --cwd package lint
24
+ pnpm lint
25
+ pnpm --dir ./ package lint
33
26
- name : Build project
34
- run : yarn package:update
27
+ run : pnpm package:update
35
28
- name : Test
36
- run : yarn test
29
+ run : pnpm test
37
30
- name : Release
38
31
env :
39
32
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ jobs:
17
17
with :
18
18
node-version : " lts/*"
19
19
- name : Install dependencies
20
- run : yarn install --frozen-lockfile
20
+ uses : ./.github/actions/ install-dependencies
21
21
- name : Lint
22
- run : yarn lint
22
+ run : pnpm lint
23
23
- name : Check contract sizes
24
- run : yarn hardhat size-contracts
24
+ run : pnpm hardhat size-contracts
25
25
- name : Test
26
- run : yarn test
26
+ run : pnpm test
You can’t perform that action at this time.
0 commit comments