Skip to content

Commit 0cac6ac

Browse files
author
Chu·Fan
authored
Merge pull request #43 from mmdapl/ci/update
ci: 更新一些ci版本
2 parents a9261e3 + ec98ed6 commit 0cac6ac

File tree

4 files changed

+25
-18
lines changed

4 files changed

+25
-18
lines changed

.github/workflows/code-ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,16 @@ jobs:
2222
- name: Checkout repository
2323
uses: actions/checkout@v3
2424

25+
- name: Install Node.js
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: 14.20.1
29+
2530
- name: PNPM Install
2631
uses: pnpm/action-setup@v2
2732
with:
2833
version: 7
29-
node-version: 14.20.1
3034
run_install: true
31-
cache: pnpm
3235

3336
- name: Code Eslint Fix
3437
run: pnpm lintfix

.github/workflows/docker-image.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,16 @@ jobs:
4040
echo "-----------Docker Login-----------"
4141
docker login --username=${{ env.UserName }} --password=${{ secrets.DOCKER_PASSWORD }} ${{env.REGISTRY}}
4242
43+
- name: Install Node.js
44+
uses: actions/setup-node@v3
45+
with:
46+
node-version: 14.20.1
47+
4348
- name: PNPM Install
4449
uses: pnpm/action-setup@v2
4550
with:
4651
version: 7
47-
node-version: 14.20.1
4852
run_install: true
49-
# 缓存 pnpm 依赖
50-
cache: pnpm
53+
5154
- name: Build And Push Docker image
5255
run: PROXY_DOMAIN=true pnpm faster-image

.github/workflows/esc-deploy.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,17 @@ jobs:
3131
echo "-----------Docker Login-----------"
3232
docker login --username=${{ env.UserName }} --password=${{ secrets.DOCKER_PASSWORD }} ${{env.REGISTRY}}
3333
34+
- name: Install Node.js
35+
uses: actions/setup-node@v3
36+
with:
37+
node-version: 14.20.1
38+
3439
- name: PNPM Install
3540
uses: pnpm/action-setup@v2
3641
with:
3742
version: 7
38-
node-version: 14.20.1
3943
run_install: true
40-
# 缓存 pnpm 依赖
41-
cache: pnpm
44+
4245
- name: Build And Push Docker image
4346
run: PROXY_DOMAIN=true pnpm faster-image
4447

.github/workflows/gh-deploy.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,25 @@ jobs:
1818
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
1919
fetch-depth: 0
2020

21-
- name: Setup PNPM
22-
uses: pnpm/action-setup@v2
23-
with:
24-
version: 7
25-
run_install: true
2621

27-
- name: Setup Node Version
22+
- name: Install Node.js
2823
uses: actions/setup-node@v3
2924
with:
30-
# 选择要使用的 node 版本
3125
node-version: 14.20.1
32-
# 缓存 pnpm 依赖
33-
cache: pnpm
26+
27+
- name: PNPM Install
28+
uses: pnpm/action-setup@v2
29+
with:
30+
version: 7
31+
run_install: true
3432

3533
# 运行构建脚本
3634
- name: Build VuePress Site
3735
run:
3836
PROXY_DOMAIN=true pnpm build
3937

4038
- name: Deploy to GitHub Page
41-
uses: crazy-max/ghaction-github-pages@v2
39+
uses: crazy-max/ghaction-github-pages@v3
4240
with:
4341
target_branch: pages/github
4442
build_dir: docs/.vuepress/dist

0 commit comments

Comments
 (0)