Skip to content

Commit

Permalink
Merge pull request #830 from frontendnetwork/feat/PNPM
Browse files Browse the repository at this point in the history
feat: Change Package manager to pnpm
  • Loading branch information
philipbrembeck authored Oct 17, 2024
2 parents ebf121f + 15853f3 commit 3d2ed98
Show file tree
Hide file tree
Showing 3 changed files with 7,220 additions and 19 deletions.
36 changes: 17 additions & 19 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,34 @@
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: 'npm'

- run: npm ci
- run: npm run build
- run: npm run lint

node-version: "18.x"
cache: "pnpm"
cache-dependency-path: "**/pnpm-lock.yaml"
- 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: 'npm'

- run: npm ci --legacy-peer-deps
- run: npm run build
- run: npm run lint
node-version: "18.x"
cache: "pnpm"
- run: pnpm install --no-strict-peer-dependencies
- run: pnpm run build
- run: pnpm run lint
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
"dev": "next dev",
"build": "next build",
"start": "next start -p 1030",
Expand Down
Loading

0 comments on commit 3d2ed98

Please sign in to comment.