Skip to content

Dependencies

Dependencies #3

Workflow file for this run

name: Dependencies
on:
schedule:
- cron: "0 12 * * 1" # Every Monday at 12:00 UTC
workflow_dispatch:
jobs:
lockfile:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: corepack enable
- run: yarn install
- run: yarn up -R '**'
- run: yarn dedupe
- name: PR
run: |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
git add yarn.lock
git checkout -b actions/lockfile
git commit -m "Update lockfile"
git push origin +actions/lockfile
gh pr create -b ${{ github.ref_name }} -t "Update lockfile" --body-file .github/resources/lockfile-pr-body.md
env:
GITHUB_TOKEN: ${{ github.token }}