mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 05:51:56 +08:00
chore(workflow): add Node.js and pnpm setup for docker build
This commit is contained in:
parent
433d28f6dc
commit
7ec4de67a9
20
.github/workflows/docker_build.yml
vendored
20
.github/workflows/docker_build.yml
vendored
@ -14,6 +14,26 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# 设置 Node.js 环境
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
|
||||
# 安装 pnpm
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 8
|
||||
|
||||
# 安装依赖
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
# 构建前端项目
|
||||
- name: Build frontend
|
||||
run: pnpm build
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
Loading…
x
Reference in New Issue
Block a user