mirror of
https://github.com/frontendnetwork/vegancheck.me
synced 2024-11-14 16:17:08 +00:00
fix: Use pnpm action
This commit is contained in:
parent
29ef63cd63
commit
a73171d021
1 changed files with 22 additions and 8 deletions
30
.github/workflows/pr.yml
vendored
30
.github/workflows/pr.yml
vendored
|
@ -1,19 +1,33 @@
|
|||
name: Build and Lint PRs
|
||||
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
regular_build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 8
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "18.x"
|
||||
cache: "pnpm"
|
||||
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: pnpm build
|
||||
- run: pnpm lint
|
||||
- run: pnpm install
|
||||
- run: pnpm run build
|
||||
- run: pnpm run lint
|
||||
legacy_peer_deps_build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: regular_build
|
||||
if: ${{ always() && needs.regular_build.result == 'failure' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 8
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "18.x"
|
||||
cache: "pnpm"
|
||||
- run: pnpm install --no-strict-peer-dependencies
|
||||
- run: pnpm run build
|
||||
- run: pnpm run lint
|
||||
|
|
Loading…
Reference in a new issue