Skip to content

Commit

Permalink
update action to install pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsinulhaq committed Nov 17, 2023
1 parent 7b9bdd0 commit 1da7442
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,30 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4

- uses: actions/setup-node@v4
with:
node-version: latest
- name: pnpm install, build, and test

- uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

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

- run: |
pnpm build
pnpm test -w false --coverage
pnpm lint
Expand Down

0 comments on commit 1da7442

Please sign in to comment.