-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #830 from frontendnetwork/feat/PNPM
feat: Change Package manager to pnpm
- Loading branch information
Showing
3 changed files
with
7,220 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.