Skip to content

Commit

Permalink
ci: use corepack to install pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
baptiste0928 committed May 30, 2023
1 parent 80b23d0 commit 87bbb9d
Showing 1 changed file with 10 additions and 24 deletions.
34 changes: 10 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,17 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v3

- name: Enable corepack
run: corepack enable

- name: Setup Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16

- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
cache: pnpm

- name: Install dependencies
uses: pnpm/action-setup@v2
with:
version: 6
run_install: true
run: pnpm install --frozen-lockfile

- name: Check TypeScript files
run: pnpm run check
Expand All @@ -45,24 +38,17 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v3

- name: Enable corepack
run: corepack enable

- name: Setup Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16

- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
cache: pnpm

- name: Install dependencies
uses: pnpm/action-setup@v2
with:
version: 7
run_install: true
run: pnpm install --frozen-lockfile

- name: Package action
run: pnpm run package
Expand Down

0 comments on commit 87bbb9d

Please sign in to comment.