chore(repo): migrate from yarn to pnpm (#1598)
This commit is contained in:
@@ -54,16 +54,13 @@ runs:
|
||||
with:
|
||||
tool: just
|
||||
|
||||
- name: Set Up pnpm
|
||||
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
|
||||
|
||||
- name: Set Up Node.js
|
||||
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
|
||||
with:
|
||||
node-version: '24'
|
||||
|
||||
- name: Enable Corepack
|
||||
shell: bash
|
||||
run: |
|
||||
corepack enable
|
||||
corepack yarn --version
|
||||
node-version-file: .nvmrc
|
||||
|
||||
- name: Install Release Tooling Dependencies
|
||||
shell: bash
|
||||
|
||||
+8
-25
@@ -19,9 +19,9 @@ updates:
|
||||
patterns:
|
||||
- "*"
|
||||
|
||||
# Frontend – npm (Angular)
|
||||
# JavaScript – pnpm workspace (frontend + release tooling)
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/frontend"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
day: "friday"
|
||||
@@ -36,34 +36,17 @@ updates:
|
||||
commit-message:
|
||||
prefix: "chore(deps)"
|
||||
groups:
|
||||
npm-dependencies:
|
||||
release-tooling:
|
||||
patterns:
|
||||
- "semantic-release"
|
||||
- "@semantic-release/*"
|
||||
- "conventional-changelog*"
|
||||
frontend:
|
||||
patterns:
|
||||
- "*"
|
||||
ignore:
|
||||
- dependency-name: "typescript"
|
||||
|
||||
# Release tooling – npm (semantic-release)
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/tools/release"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
day: "friday"
|
||||
time: "03:00"
|
||||
timezone: "UTC"
|
||||
cooldown:
|
||||
default-days: 3
|
||||
open-pull-requests-limit: 5
|
||||
labels:
|
||||
- "dependencies"
|
||||
- "ci"
|
||||
- "release"
|
||||
commit-message:
|
||||
prefix: "chore(deps)"
|
||||
groups:
|
||||
release-tooling:
|
||||
patterns:
|
||||
- "*"
|
||||
|
||||
# GitHub Actions
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -49,15 +49,13 @@ jobs:
|
||||
with:
|
||||
tool: just
|
||||
|
||||
- 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 Release Tooling Dependencies
|
||||
run: just release install
|
||||
|
||||
@@ -54,15 +54,13 @@ jobs:
|
||||
with:
|
||||
tool: just
|
||||
|
||||
- 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 Release Tooling Dependencies
|
||||
run: just release install
|
||||
|
||||
@@ -125,15 +125,13 @@ jobs:
|
||||
with:
|
||||
tool: just
|
||||
|
||||
- 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
|
||||
run: just ui install-ci
|
||||
|
||||
Reference in New Issue
Block a user