From 6cbe5e74722ac2b7cd98cc412453c2ddfea6ccae Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Tue, 16 May 2023 21:35:06 +0800 Subject: [PATCH] Update lockfile CI (#7105) --- .github/workflows/nightly.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index ce6fdd2dea02..027533ef6905 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -2,13 +2,14 @@ name: "Nightly" on: schedule: - # * is a special character in YAML so you have to quote this string - - cron: "0 12 * * *" + # Run every Monday at 12:00 UTC + - cron: "0 12 * * 1" workflow_dispatch: jobs: stat: - if: github.repository_owner == 'withastro' + # Temporarily disable since stat collection hasn't work for a while + if: false runs-on: ubuntu-latest steps: - name: Check out code using Git @@ -59,17 +60,22 @@ jobs: - name: Delete the existing pnpm-lock.yaml file run: rm pnpm-lock.yaml + # https://github.com/pnpm/pnpm/issues/6463 + - name: Update .npmrc to update packages to latest + run: echo "resolution-mode=highest" >> .npmrc + - name: Create a fresh pnpm lockfile (no install) run: pnpm install --lockfile-only - name: Create Pull Request id: createpr - uses: peter-evans/create-pull-request@v3 + uses: peter-evans/create-pull-request@v5 with: branch: ci/lockfile # Access token is needed to trigger CI on this PR token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }} commit-message: "[ci] update lockfile" + add-paths: pnpm-lock.yaml title: "[ci] update lockfile" body: > This PR is auto-generated by a nightly GitHub action.