Skip to content

Commit

Permalink
chore(Pipelines): Add --legacy-peer-deps flag for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
philipbrembeck authored Jan 3, 2024
1 parent e46b2f7 commit 8ff8dd7
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and Lint PRs
on: [pull_request]

jobs:
build:
regular_build:
runs-on: ubuntu-latest

steps:
Expand All @@ -17,3 +17,20 @@ jobs:
- run: npm ci
- run: npm run build
- run: npm 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: actions/setup-node@v4
with:
node-version: '18.x'
cache: 'npm'

- run: npm ci --legacy-peer-deps
- run: npm run build
- run: npm run lint

0 comments on commit 8ff8dd7

Please sign in to comment.