Skip to content

Commit

Permalink
Replace pnpm with yarn in GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
AjayPoshak committed Oct 30, 2024
1 parent 3a9ba6f commit 74d1181
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions .github/workflows/lint-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 2
run: corepack enable

- name: Cache turbo build setup
uses: actions/cache@v4
Expand All @@ -30,35 +31,23 @@ jobs:
restore-keys: |
${{ runner.os }}-turbo-
- uses: pnpm/action-setup@v3
with:
version: 8

- name: Cache pnpm store
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
cache: 'yarn'

- name: Install dependencies
run: pnpm install
run: yarn install --immutable

- name: Lint
run: pnpm lint
run: yarn lint

- name: Check Formatting
run: pnpm check:format
run: yarn check:format

- name: Build
run: pnpm build
run: yarn build

- name: Test
run: pnpm test
run: yarn test

0 comments on commit 74d1181

Please sign in to comment.