Update lockfile CI (#7105)
This commit is contained in:
parent
babe7700a2
commit
6cbe5e7472
1 changed files with 10 additions and 4 deletions
14
.github/workflows/nightly.yml
vendored
14
.github/workflows/nightly.yml
vendored
|
@ -2,13 +2,14 @@ name: "Nightly"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
# * is a special character in YAML so you have to quote this string
|
# Run every Monday at 12:00 UTC
|
||||||
- cron: "0 12 * * *"
|
- cron: "0 12 * * 1"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stat:
|
stat:
|
||||||
if: github.repository_owner == 'withastro'
|
# Temporarily disable since stat collection hasn't work for a while
|
||||||
|
if: false
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code using Git
|
- name: Check out code using Git
|
||||||
|
@ -59,17 +60,22 @@ jobs:
|
||||||
- name: Delete the existing pnpm-lock.yaml file
|
- name: Delete the existing pnpm-lock.yaml file
|
||||||
run: rm pnpm-lock.yaml
|
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)
|
- name: Create a fresh pnpm lockfile (no install)
|
||||||
run: pnpm install --lockfile-only
|
run: pnpm install --lockfile-only
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
id: createpr
|
id: createpr
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v5
|
||||||
with:
|
with:
|
||||||
branch: ci/lockfile
|
branch: ci/lockfile
|
||||||
# Access token is needed to trigger CI on this PR
|
# Access token is needed to trigger CI on this PR
|
||||||
token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
|
token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
|
||||||
commit-message: "[ci] update lockfile"
|
commit-message: "[ci] update lockfile"
|
||||||
|
add-paths: pnpm-lock.yaml
|
||||||
title: "[ci] update lockfile"
|
title: "[ci] update lockfile"
|
||||||
body: >
|
body: >
|
||||||
This PR is auto-generated by a nightly GitHub action.
|
This PR is auto-generated by a nightly GitHub action.
|
||||||
|
|
Loading…
Reference in a new issue