diff --git a/.github/workflows/code-ci.yml b/.github/workflows/code-ci.yml index a18a3c1..9b37ae1 100644 --- a/.github/workflows/code-ci.yml +++ b/.github/workflows/code-ci.yml @@ -23,14 +23,16 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 14.20.1 + - name: PNPM Install uses: pnpm/action-setup@v2 with: version: 7 - node-version: 14.20.1 run_install: true - # 缓存 pnpm 依赖 - cache: pnpm - name: Code Eslint Fix run: pnpm lintfix diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index ece51c0..b411873 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -40,13 +40,16 @@ jobs: echo "-----------Docker Login-----------" docker login --username=${{ env.UserName }} --password=${{ secrets.DOCKER_PASSWORD }} ${{env.REGISTRY}} + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 14.20.1 + - name: PNPM Install uses: pnpm/action-setup@v2 with: version: 7 - node-version: 14.20.1 run_install: true - # 缓存 pnpm 依赖 - cache: pnpm + - name: Build And Push Docker image run: PROXY_DOMAIN=true pnpm faster-image diff --git a/.github/workflows/esc-deploy.yml b/.github/workflows/esc-deploy.yml index 964d9c2..99324a2 100644 --- a/.github/workflows/esc-deploy.yml +++ b/.github/workflows/esc-deploy.yml @@ -31,14 +31,17 @@ jobs: echo "-----------Docker Login-----------" docker login --username=${{ env.UserName }} --password=${{ secrets.DOCKER_PASSWORD }} ${{env.REGISTRY}} + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 14.20.1 + - name: PNPM Install uses: pnpm/action-setup@v2 with: version: 7 - node-version: 14.20.1 run_install: true - # 缓存 pnpm 依赖 - cache: pnpm + - name: Build And Push Docker image run: pnpm faster-image diff --git a/.github/workflows/gh-deploy.yml b/.github/workflows/gh-deploy.yml index 421bbd3..4fa9be5 100644 --- a/.github/workflows/gh-deploy.yml +++ b/.github/workflows/gh-deploy.yml @@ -18,27 +18,24 @@ jobs: # “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录 fetch-depth: 0 - - name: Setup PNPM + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 14.20.1 + + - name: PNPM Install uses: pnpm/action-setup@v2 with: version: 7 run_install: true - - name: Setup Node Version - uses: actions/setup-node@v3 - with: - # 选择要使用的 node 版本 - node-version: 14.20.1 - # 缓存 pnpm 依赖 - cache: pnpm - # 运行构建脚本 - name: Build VuePress Site run: PROXY_DOMAIN=true pnpm build - name: Deploy to GitHub Page - uses: crazy-max/ghaction-github-pages@v2 + uses: crazy-max/ghaction-github-pages@v3 with: target_branch: pages/github build_dir: docs/.vuepress/dist