ci: 配置 Docker 容器运行、镜像源及自建 checkout action
This commit is contained in:
@@ -11,17 +11,14 @@ on:
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: aliyun
|
||||
container: node:22-bookworm
|
||||
env:
|
||||
npm_config_registry: https://registry.npmmirror.com
|
||||
defaults:
|
||||
run:
|
||||
working-directory: frontend
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
cache: npm
|
||||
cache-dependency-path: frontend/package-lock.json
|
||||
- uses: http://8.161.227.145:3000/huanghaosheng/checkout@releases/v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
Reference in New Issue
Block a user