Skip to content

Commit

Permalink
Update pnpm installation command in GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mazwrld committed Apr 28, 2024
1 parent 049bcd8 commit e7a1991
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,34 @@ jobs:
with:
node-version: '20'

- uses: pnpm/action-setup@v3
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: npm install
run: pnpm install

- name: Type check
run: npm run typecheck
run: pnpm typecheck

- name: Lint
run: npm run lint
run: pnpm lint

Deploy-Preview:
runs-on: ubuntu-latest
Expand Down

0 comments on commit e7a1991

Please sign in to comment.