mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 07:33:07 +08:00
build: use pnpm official Docker image and update CI/Docker setup (#639)
- Replace docker-compose.yml (node:lts) with compose.yaml (ghcr.io/pnpm/pnpm:11.3.0) - Bump pnpm to 11.3.0 and add --frozen-lockfile in CI - Add pnpm-workspace.yaml to allow esbuild and sharp builds - Update .gitignore for pnpm store and compose override file
This commit is contained in:
@@ -18,10 +18,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 3
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: ["24"]
|
||||
|
||||
steps:
|
||||
- name: "☁️ Checkout repository"
|
||||
uses: actions/checkout@v4
|
||||
@@ -29,16 +25,16 @@ jobs:
|
||||
- name: "📦 Install pnpm"
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 10.11.1
|
||||
version: "11.3.0"
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
node-version: "24"
|
||||
cache: "pnpm"
|
||||
|
||||
- name: "📦 Install dependencies"
|
||||
run: pnpm install
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: "🔎 Lint code"
|
||||
run: pnpm run lint
|
||||
|
||||
Reference in New Issue
Block a user