-
Notifications
You must be signed in to change notification settings - Fork 17
45 lines (38 loc) · 1.26 KB
/
yarn-upgrade-bot.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Automatic `yarn` dependency upgrades
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
yarn-update-pins:
name: Update `yarn.lock` pins
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
env:
FORCE_COLOR: 0
with:
node-version: "20"
cache: "yarn"
cache-dependency-path: ./webapp/yarn.lock
- name: Sync latest compatible dependencies and commit
working-directory: ./webapp
run: yarn upgrade
- name: Create PR with changes
uses: peter-evans/create-pull-request@v7
with:
base: main
add-paths: ./webapp/yarn.lock
sign-commits: true
branch: ci/update-yarn-lock-main-deps
delete-branch: true
commit-message: "ci: update yarn lock file"
title: "Update `yarn.lock` with latest dependencies"
body: "This PR updates the `yarn.lock` file with the latest compatible dependencies. The chagnes to the lockfile must be reviewed; to run the tests, mark the PR as ready-for-review."
labels: dependency_updates,javascript
draft: always-true