mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 07:33:07 +08:00
build: migrate CI and Docker setup to pnpm
This commit is contained in:
@@ -17,26 +17,31 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [18.x]
|
||||
node-version: [20]
|
||||
|
||||
steps:
|
||||
- name: "☁️ Checkout repository"
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: "🔧 Setup Node.js ${{ matrix.node-version }}"
|
||||
- name: "📦 Install pnpm"
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 10
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: "npm"
|
||||
cache: "pnpm"
|
||||
|
||||
- name: "📦 Install dependencies"
|
||||
run: npm ci
|
||||
run: pnpm install
|
||||
|
||||
- name: "🔎 Lint code"
|
||||
run: npm run lint
|
||||
run: pnpm run lint
|
||||
|
||||
- name: "📝 Checking code format"
|
||||
run: npm run format:check
|
||||
run: pnpm run format:check
|
||||
|
||||
- name: "🚀 Build the project"
|
||||
run: npm run build
|
||||
run: pnpm run build
|
||||
|
||||
Reference in New Issue
Block a user