chore: update to pnpm 12 (#2843)
This commit is contained in:
@@ -28,13 +28,12 @@ jobs:
|
|||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
|
|
||||||
- name: Set Up pnpm
|
- name: Set Up pnpm and Node.js
|
||||||
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
|
uses: pnpm/setup@fbda4c85fc2e1e08721cd8763afea8f48d60f024 # v3.0.0
|
||||||
|
|
||||||
- name: Set Up Node.js
|
|
||||||
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
|
|
||||||
with:
|
with:
|
||||||
node-version-file: .nvmrc
|
node-version-file: .nvmrc
|
||||||
|
cache: true
|
||||||
|
install: false
|
||||||
|
|
||||||
- name: Install Frontend Dependencies
|
- name: Install Frontend Dependencies
|
||||||
run: pnpm install --frozen-lockfile --ignore-scripts
|
run: pnpm install --frozen-lockfile --ignore-scripts
|
||||||
|
|||||||
@@ -91,19 +91,11 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Set Up Node.js
|
- name: Set Up pnpm and Node.js
|
||||||
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
|
uses: pnpm/setup@fbda4c85fc2e1e08721cd8763afea8f48d60f024 # v3.0.0
|
||||||
with:
|
with:
|
||||||
node-version-file: .nvmrc
|
node-version-file: .nvmrc
|
||||||
|
|
||||||
- name: Set Up pnpm
|
|
||||||
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
|
|
||||||
with:
|
|
||||||
version: 11
|
|
||||||
cache: true
|
cache: true
|
||||||
run_install: |
|
|
||||||
- cwd: frontend/
|
|
||||||
package_json_file: frontend/package.json
|
|
||||||
|
|
||||||
- name: Build frontend
|
- name: Build frontend
|
||||||
working-directory: frontend/
|
working-directory: frontend/
|
||||||
|
|||||||
@@ -106,13 +106,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tool: just
|
tool: just
|
||||||
|
|
||||||
- name: Set Up pnpm
|
- name: Set Up pnpm and Node.js
|
||||||
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
|
uses: pnpm/setup@fbda4c85fc2e1e08721cd8763afea8f48d60f024 # v3.0.0
|
||||||
|
|
||||||
- name: Set Up Node.js
|
|
||||||
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
|
|
||||||
with:
|
with:
|
||||||
node-version-file: .nvmrc
|
node-version-file: .nvmrc
|
||||||
|
cache: true
|
||||||
|
install: false
|
||||||
|
|
||||||
- name: Install Frontend Dependencies
|
- name: Install Frontend Dependencies
|
||||||
run: just ui install-ci
|
run: just ui install-ci
|
||||||
|
|||||||
+4
-4
@@ -1,18 +1,18 @@
|
|||||||
FROM --platform=$BUILDPLATFORM node:24-alpine AS frontend-build
|
FROM --platform=$BUILDPLATFORM node:24-alpine AS frontend-build
|
||||||
|
|
||||||
ENV PNPM_HOME="/pnpm"
|
ENV PNPM_HOME="/pnpm"
|
||||||
ENV PATH="${PNPM_HOME}:${PATH}"
|
ENV PATH="${PNPM_HOME}/bin:${PATH}"
|
||||||
|
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
|
|
||||||
RUN npm install --ignore-scripts -g pnpm@11.19.0
|
COPY package.json ./
|
||||||
|
RUN PNPM_VERSION="$(node -p "require('./package.json').packageManager.split('@')[1]")" && \
|
||||||
|
ENV="/root/.shrc" SHELL="/bin/sh" npx --yes get-pnpm "$PNPM_VERSION"
|
||||||
|
|
||||||
COPY pnpm-lock.yaml pnpm-workspace.yaml ./
|
COPY pnpm-lock.yaml pnpm-workspace.yaml ./
|
||||||
RUN --mount=type=cache,target=/pnpm/store \
|
RUN --mount=type=cache,target=/pnpm/store \
|
||||||
pnpm config set store-dir /pnpm/store && \
|
|
||||||
pnpm fetch
|
pnpm fetch
|
||||||
|
|
||||||
COPY package.json ./
|
|
||||||
COPY frontend/package.json ./frontend/
|
COPY frontend/package.json ./frontend/
|
||||||
RUN --mount=type=cache,target=/pnpm/store \
|
RUN --mount=type=cache,target=/pnpm/store \
|
||||||
pnpm install --offline --frozen-lockfile --ignore-scripts
|
pnpm install --offline --frozen-lockfile --ignore-scripts
|
||||||
|
|||||||
+12
-7
@@ -35,15 +35,20 @@ services:
|
|||||||
- ./shared/bookdrop:/bookdrop
|
- ./shared/bookdrop:/bookdrop
|
||||||
frontend:
|
frontend:
|
||||||
image: node:24-alpine
|
image: node:24-alpine
|
||||||
command: |-
|
command:
|
||||||
sh -c "\
|
- sh
|
||||||
cd /workspace &&\
|
- -ec
|
||||||
npm install -g pnpm@11.19.0 &&\
|
- |
|
||||||
pnpm config set store-dir /workspace/node_modules/.pnpm-store &&\
|
cd /workspace
|
||||||
pnpm install --frozen-lockfile --ignore-scripts &&\
|
export PATH="$${PNPM_HOME}/bin:$${PATH}"
|
||||||
pnpm -C frontend exec ng serve --host 0.0.0.0 --watch --configuration development"
|
PNPM_VERSION="$$(node -p "require('./package.json').packageManager.split('@')[1]")"
|
||||||
|
ENV="/root/.shrc" SHELL="/bin/sh" npx --yes get-pnpm "$${PNPM_VERSION}"
|
||||||
|
pnpm install --frozen-lockfile --ignore-scripts
|
||||||
|
pnpm -C frontend exec ng serve --host 0.0.0.0 --watch --configuration development
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=development
|
- NODE_ENV=development
|
||||||
|
- PNPM_HOME=/pnpm
|
||||||
|
- PNPM_CONFIG_STORE_DIR=/workspace/node_modules/.pnpm-store
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
tty: true
|
tty: true
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "grimmory-workspace",
|
"name": "grimmory-workspace",
|
||||||
"private": true,
|
"private": true,
|
||||||
"packageManager": "pnpm@11.19.0",
|
"packageManager": "pnpm@12.8.2",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=24"
|
"node": ">=24"
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+158
@@ -1,3 +1,161 @@
|
|||||||
|
---
|
||||||
|
lockfileVersion: '9.0'
|
||||||
|
|
||||||
|
importers:
|
||||||
|
|
||||||
|
.:
|
||||||
|
configDependencies: {}
|
||||||
|
packageManagerDependencies:
|
||||||
|
pnpm:
|
||||||
|
specifier: 12.8.2
|
||||||
|
version: 12.8.2
|
||||||
|
|
||||||
|
packages:
|
||||||
|
|
||||||
|
'@pnpm/exe.android-arm64@12.8.2':
|
||||||
|
resolution: {integrity: sha512-b0gzsJQuxYCX1Pokkf9z+lvajgb5bqBExjmw4kj8H4Bwd2AfH8TkQVxDtrHGptEdkuwokEUSERdpNbRok2cc6Q==}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [android]
|
||||||
|
|
||||||
|
'@pnpm/exe.android-x64@12.8.2':
|
||||||
|
resolution: {integrity: sha512-j7dzfFMc0XxwhbFvslb06r51tdIlaQQpHUcIrpM7b4ACRYr+LgrpQIB7fI8SdlqPLvsFrrzNYIZXLQN6Kc+xbQ==}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [android]
|
||||||
|
|
||||||
|
'@pnpm/exe.darwin-arm64@12.8.2':
|
||||||
|
resolution: {integrity: sha512-J3cmPRwOVXnPspYeQ3OwwrR8Di9GWRA1aBWD/T1go/4KiD5dvwmE1Q0nW7+F2vAz7FRDRt/91/ZaAujdLX8PIA==}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [darwin]
|
||||||
|
|
||||||
|
'@pnpm/exe.darwin-x64@12.8.2':
|
||||||
|
resolution: {integrity: sha512-+6UGMD/E7CfzYPqePOkVtWSpDeP7YV5L2k2IwDJykYZ4HH17aYUNGH1FHJSiBTZ/GjLAtdxy0X625sj/wm0w8w==}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [darwin]
|
||||||
|
|
||||||
|
'@pnpm/exe.freebsd-x64@12.8.2':
|
||||||
|
resolution: {integrity: sha512-5fg6lDYuxaPSZawglnhtZMUJI+tgJxybI1DbrKDpQ1v6jitEOptzyMIsrisKVg1sWwO9lbIW+OnQC7OC29ZbOA==}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [freebsd]
|
||||||
|
|
||||||
|
'@pnpm/exe.linux-arm64-musl@12.8.2':
|
||||||
|
resolution: {integrity: sha512-HLOlwfubM+29gs++BDUFejTb09E9aN+4EVzOANU1V9BtoUpY0itBKXeLcxUVTtWwtfAdTUJwmgK6sNgZHC8xBg==}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [linux]
|
||||||
|
libc: [musl]
|
||||||
|
|
||||||
|
'@pnpm/exe.linux-arm64@12.8.2':
|
||||||
|
resolution: {integrity: sha512-Q7wIusa83KRHg8MV4hbZq1Ua8pgiET2hJc6U49cd1BWxqob3lwiPg90WLZ5qqYvXM4yytLUSxsMTQlsTWjgsrA==}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [linux]
|
||||||
|
libc: [glibc]
|
||||||
|
|
||||||
|
'@pnpm/exe.linux-ppc64@12.8.2':
|
||||||
|
resolution: {integrity: sha512-QQhbXz7q/YK/xkTarU4wv4++aZjVOTZ8BrgLopuJkGdFNtJHJWeXA8cm/SLXir4KTb+pMyc/+Ece44pobEMbkA==}
|
||||||
|
cpu: [ppc64]
|
||||||
|
os: [linux]
|
||||||
|
libc: [glibc]
|
||||||
|
|
||||||
|
'@pnpm/exe.linux-riscv64@12.8.2':
|
||||||
|
resolution: {integrity: sha512-gfoFW48o3SHMM6hsTKYwobtGKzMR8y+8A9fuXcc0YMdJubR3BmCtzyUa98IWcxM+kE0mKwQYvzxjeaAVppX7qA==}
|
||||||
|
cpu: [riscv64]
|
||||||
|
os: [linux]
|
||||||
|
libc: [glibc]
|
||||||
|
|
||||||
|
'@pnpm/exe.linux-s390x@12.8.2':
|
||||||
|
resolution: {integrity: sha512-O786sSXtm9Qs5BiUQMKaOGU9n7/UwGzYSTAP2+ltaNMeOTrJSkl9QszOMzlK31/JfTnV4F5dg9PQN2pWdW4aOQ==}
|
||||||
|
cpu: [s390x]
|
||||||
|
os: [linux]
|
||||||
|
libc: [glibc]
|
||||||
|
|
||||||
|
'@pnpm/exe.linux-x64-musl@12.8.2':
|
||||||
|
resolution: {integrity: sha512-GJ9ZkN9RVlu1LGRYTFjp7c/QAbSYaaVzplP00m4ijKdiv+fGeINeIETBR5MdUZ8biPZf7MJFoKHhMnz88JIj5A==}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [linux]
|
||||||
|
libc: [musl]
|
||||||
|
|
||||||
|
'@pnpm/exe.linux-x64@12.8.2':
|
||||||
|
resolution: {integrity: sha512-2rjP1HbpSMeSyfbP2CcGG0L2+r+9gHKAjYCZZQj/3SdQBywugJ9aa5OWyPp6yz0Z5xd7tKdUtQJh09TnZOUhwA==}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [linux]
|
||||||
|
libc: [glibc]
|
||||||
|
|
||||||
|
'@pnpm/exe.win32-arm64@12.8.2':
|
||||||
|
resolution: {integrity: sha512-B1bszoDtTn4o6VGHAE/wrcjceW0zUsxIakTguK3vgbZZ4t6oCv+0d100gJzjmynxg9mHmBXH35JT87SGzyXE2g==}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [win32]
|
||||||
|
|
||||||
|
'@pnpm/exe.win32-x64@12.8.2':
|
||||||
|
resolution: {integrity: sha512-rOZPUUTU1PHop5dsBQcdQZCnRp7Nz5/v0fnRJkL/4kgKPRONwzD809YwQ/s4mBdSgRY5CcGaYrzwOerp+pFbRg==}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [win32]
|
||||||
|
|
||||||
|
pnpm@12.8.2:
|
||||||
|
resolution: {integrity: sha512-pZQWeWY9lSxfDsw4upivmLTcAblXgDVPaJTy+HOXPO8vfimJ19s+5Tk5OK4h9i/ga832hdR13a2CmmIJXSuLEQ==}
|
||||||
|
engines: {node: '>=18.*'}
|
||||||
|
hasBin: true
|
||||||
|
|
||||||
|
snapshots:
|
||||||
|
|
||||||
|
'@pnpm/exe.android-arm64@12.8.2':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@pnpm/exe.android-x64@12.8.2':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@pnpm/exe.darwin-arm64@12.8.2':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@pnpm/exe.darwin-x64@12.8.2':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@pnpm/exe.freebsd-x64@12.8.2':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@pnpm/exe.linux-arm64-musl@12.8.2':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@pnpm/exe.linux-arm64@12.8.2':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@pnpm/exe.linux-ppc64@12.8.2':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@pnpm/exe.linux-riscv64@12.8.2':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@pnpm/exe.linux-s390x@12.8.2':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@pnpm/exe.linux-x64-musl@12.8.2':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@pnpm/exe.linux-x64@12.8.2':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@pnpm/exe.win32-arm64@12.8.2':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
'@pnpm/exe.win32-x64@12.8.2':
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
pnpm@12.8.2:
|
||||||
|
optionalDependencies:
|
||||||
|
'@pnpm/exe.android-arm64': 12.8.2
|
||||||
|
'@pnpm/exe.android-x64': 12.8.2
|
||||||
|
'@pnpm/exe.darwin-arm64': 12.8.2
|
||||||
|
'@pnpm/exe.darwin-x64': 12.8.2
|
||||||
|
'@pnpm/exe.freebsd-x64': 12.8.2
|
||||||
|
'@pnpm/exe.linux-arm64': 12.8.2
|
||||||
|
'@pnpm/exe.linux-arm64-musl': 12.8.2
|
||||||
|
'@pnpm/exe.linux-ppc64': 12.8.2
|
||||||
|
'@pnpm/exe.linux-riscv64': 12.8.2
|
||||||
|
'@pnpm/exe.linux-s390x': 12.8.2
|
||||||
|
'@pnpm/exe.linux-x64': 12.8.2
|
||||||
|
'@pnpm/exe.linux-x64-musl': 12.8.2
|
||||||
|
'@pnpm/exe.win32-arm64': 12.8.2
|
||||||
|
'@pnpm/exe.win32-x64': 12.8.2
|
||||||
|
|
||||||
|
---
|
||||||
lockfileVersion: '9.0'
|
lockfileVersion: '9.0'
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
|
|||||||
Reference in New Issue
Block a user