Skip to content

Commit

Permalink
feat(ci): update github worflow to use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
plouc committed Apr 28, 2023
1 parent 66e6ed7 commit 21c9074
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,35 +14,19 @@ jobs:
node-version: ['16']
steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v1
- uses: pnpm/action-setup@v2
with:
node-version: ${{ matrix.node-version }}
version: 8

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Restore Yarn cache
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Restore Lerna cache
uses: actions/cache@v2
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- run: yarn install --frozen-lockfile
- run: make bootstrap
- run: pnpm install
- run: make packages-build
- run: make packages-lint
- run: make packages-test

0 comments on commit 21c9074

Please sign in to comment.