Skip to content

Commit

Permalink
ci: 🎡 Using pnpm instead of yarn in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kostysh committed Jul 31, 2023
1 parent b4eef37 commit c1bceee
Show file tree
Hide file tree
Showing 7 changed files with 17,725 additions and 25,912 deletions.
26 changes: 26 additions & 0 deletions .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Install dependencies"
description: "Prepare repository and all dependencies"

runs:
using: "composite"
steps:
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: latest

- name: Set up node
uses: actions/setup-node@v3
with:
cache: pnpm
node-version: "lts/*"

- name: Install dependencies
shell: bash
run: |
pnpm install --frozen-lockfile --ignore-scripts
pnpm --dir ./package install --frozen-lockfile --ignore-scripts
- name: Build packages
shell: bash
run: pnpm build
17 changes: 5 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,16 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: "lts/*"
- name: Yarn 2 setup
run: |
corepack enable
corepack prepare yarn@stable --activate
yarn set version stable
- name: Install dependencies
run: |
yarn install --immutable
yarn ./package install --immutable
uses: ./.github/actions/install-dependencies
- name: Lint
run: |
yarn lint
yarn --cwd package lint
pnpm lint
pnpm --dir ./package lint
- name: Build project
run: yarn package:update
run: pnpm package:update
- name: Test
run: yarn test
run: pnpm test
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
with:
node-version: "lts/*"
- name: Install dependencies
run: yarn install --frozen-lockfile
uses: ./.github/actions/install-dependencies
- name: Lint
run: yarn lint
run: pnpm lint
- name: Check contract sizes
run: yarn hardhat size-contracts
run: pnpm hardhat size-contracts
- name: Test
run: yarn test
run: pnpm test
Loading

0 comments on commit c1bceee

Please sign in to comment.