chore(repo): migrate from yarn to pnpm (#1598)
This commit is contained in:
@@ -28,29 +28,26 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
||||
|
||||
- name: Set Up pnpm
|
||||
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
|
||||
|
||||
- name: Set Up Node.js
|
||||
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
|
||||
with:
|
||||
node-version: '24'
|
||||
|
||||
- name: Enable Corepack
|
||||
run: |
|
||||
corepack enable
|
||||
corepack yarn --version
|
||||
node-version-file: .nvmrc
|
||||
|
||||
- name: Install Frontend Dependencies
|
||||
working-directory: ./frontend
|
||||
run: corepack yarn install --immutable
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Typecheck Frontend
|
||||
working-directory: ./frontend
|
||||
run: corepack yarn typecheck
|
||||
run: pnpm run typecheck
|
||||
|
||||
- name: Run Frontend Build
|
||||
working-directory: ./frontend
|
||||
run: |
|
||||
set +e
|
||||
CI=1 NG_CLI_ANALYTICS=false corepack yarn build:prod 2>&1 | tee build-output.log
|
||||
CI=1 NG_CLI_ANALYTICS=false pnpm run build:prod 2>&1 | tee build-output.log
|
||||
BUILD_EXIT_CODE=${PIPESTATUS[0]}
|
||||
set -e
|
||||
|
||||
@@ -77,7 +74,7 @@ jobs:
|
||||
working-directory: ./frontend
|
||||
run: |
|
||||
# Lint output is written to JSON for threshold evaluation.
|
||||
corepack yarn lint:eslint --format json --output-file lint-results.json || true
|
||||
pnpm run lint:eslint --format json --output-file lint-results.json || true
|
||||
|
||||
- name: Count Lint Warnings
|
||||
working-directory: ./frontend
|
||||
|
||||
Reference in New Issue
Block a user