Skip to content

Commit c1bceee

Browse files
committedJul 31, 2023
ci: 🎡 Using pnpm instead of yarn in workflow
1 parent b4eef37 commit c1bceee

File tree

7 files changed

+17725
-25912
lines changed

7 files changed

+17725
-25912
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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

‎.github/workflows/release.yml

+5-12
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,16 @@ jobs:
1717
uses: actions/setup-node@v3
1818
with:
1919
node-version: "lts/*"
20-
- name: Yarn 2 setup
21-
run: |
22-
corepack enable
23-
corepack prepare yarn@stable --activate
24-
yarn set version stable
2520
- name: Install dependencies
26-
run: |
27-
yarn install --immutable
28-
yarn ./package install --immutable
21+
uses: ./.github/actions/install-dependencies
2922
- name: Lint
3023
run: |
31-
yarn lint
32-
yarn --cwd package lint
24+
pnpm lint
25+
pnpm --dir ./package lint
3326
- name: Build project
34-
run: yarn package:update
27+
run: pnpm package:update
3528
- name: Test
36-
run: yarn test
29+
run: pnpm test
3730
- name: Release
3831
env:
3932
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

‎.github/workflows/test.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
with:
1818
node-version: "lts/*"
1919
- name: Install dependencies
20-
run: yarn install --frozen-lockfile
20+
uses: ./.github/actions/install-dependencies
2121
- name: Lint
22-
run: yarn lint
22+
run: pnpm lint
2323
- name: Check contract sizes
24-
run: yarn hardhat size-contracts
24+
run: pnpm hardhat size-contracts
2525
- name: Test
26-
run: yarn test
26+
run: pnpm test

0 commit comments

Comments
 (0)
Please sign in to comment.