diff --git "a/.github/workflows/\344\272\214\347\273\264\347\240\201\347\231\273\345\275\225.yml" "b/.github/workflows/\344\272\214\347\273\264\347\240\201\347\231\273\345\275\225.yml" index 5b677449..6a45d107 100644 --- "a/.github/workflows/\344\272\214\347\273\264\347\240\201\347\231\273\345\275\225.yml" +++ "b/.github/workflows/\344\272\214\347\273\264\347\240\201\347\231\273\345\275\225.yml" @@ -31,10 +31,10 @@ jobs: timeout-minutes: 15 steps: - name: 检出仓库 - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: 创建 Node 环境 - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: 24 cache: 'npm' @@ -51,18 +51,8 @@ jobs: fi gh --version - - name: 缓存依赖 - id: cache-npm - uses: actions/cache@v4 - with: - path: ./api/node_modules - key: ${{ runner.os }}-node-${{ hashFiles('./api/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- - - name: 安装依赖 run: npm run install - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} # ════════════════════════════════════════════ # 步骤一:生成二维码 → PNG + Summary + HTML 登录页 diff --git "a/.github/workflows/\344\273\223\345\272\223\344\277\235\346\264\273.yml" "b/.github/workflows/\344\273\223\345\272\223\344\277\235\346\264\273.yml" index fb3f053c..774158a3 100644 --- "a/.github/workflows/\344\273\223\345\272\223\344\277\235\346\264\273.yml" +++ "b/.github/workflows/\344\273\223\345\272\223\344\277\235\346\264\273.yml" @@ -14,7 +14,7 @@ jobs: steps: - name: 检出仓库 - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 diff --git "a/.github/workflows/\346\211\213\346\234\272\345\217\267\347\231\273\345\275\225.yml" "b/.github/workflows/\346\211\213\346\234\272\345\217\267\347\231\273\345\275\225.yml" index 216dce88..1f889fca 100644 --- "a/.github/workflows/\346\211\213\346\234\272\345\217\267\347\231\273\345\275\225.yml" +++ "b/.github/workflows/\346\211\213\346\234\272\345\217\267\347\231\273\345\275\225.yml" @@ -34,13 +34,15 @@ jobs: timeout-minutes: 2 steps: - name: 检出仓库 - uses: actions/checkout@v4 + uses: actions/checkout@v6 + - name: 创建 Node 环境 - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: 24 cache: 'npm' cache-dependency-path: ./api/package-lock.json + - name: 检查 GitHub CLI if: github.event.inputs.step == '登录' run: | @@ -52,22 +54,16 @@ jobs: sudo apt install gh -y fi gh --version - - name: 缓存依赖 - id: cache-npm - uses: actions/cache@v4 - with: - path: ./api/node_modules - key: ${{ runner.os }}-node-${{ hashFiles('./api/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + - name: 安装依赖 run: npm run install - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} + - name: 发送验证码 if: github.event.inputs.step == '发送验证码' run: npm run sent env: PHONE: ${{ secrets.PHONE }} + - name: 手机号登录 if: github.event.inputs.step == '登录' run: npm run phoneLogin diff --git "a/.github/workflows/\347\255\276\345\210\260.yml" "b/.github/workflows/\347\255\276\345\210\260.yml" index 8281a577..80982334 100644 --- "a/.github/workflows/\347\255\276\345\210\260.yml" +++ "b/.github/workflows/\347\255\276\345\210\260.yml" @@ -12,24 +12,18 @@ jobs: timeout-minutes: 30 steps: - name: 检出仓库 - uses: actions/checkout@v4 + uses: actions/checkout@v6 + - name: 创建 Node 环境 - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: 24 cache: 'npm' cache-dependency-path: ./api/package-lock.json - - name: 缓存依赖 - id: cache-npm - uses: actions/cache@v4 - with: - path: ./api/node_modules - key: ${{ runner.os }}-node-${{ hashFiles('./api/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + - name: 安装依赖 run: npm run install - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} + - name: 执行签到 run: npm run main env: