Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/monthly_npm_dependency_update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Monthly npm dependency update and create PR

on:
schedule:
- cron: "0 8 1 * *" # 08:00 UTC on the 1st of every month
workflow_dispatch:

jobs:
npm-update:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
defaults:
run:
working-directory: frontend
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f #v6
with:
node-version: 24
cache: npm
cache-dependency-path: frontend/package-lock.json

- name: Update npm to support minimumReleaseAge
run: npm install -g [email protected]

- name: Update npm packages
run: npm update

- name: Create Pull Request
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e #v7
with:
commit-message: "GHA: Monthly npm dependency update"
title: Monthly npm dependency update
body: |
- Monthly update of npm dependencies
- Only packages released more than 7 days ago are included (enforced via `min-release-age=7` in `.npmrc`)

Auto-generated by [create-pull-request][1]

[1]: https://github.com/peter-evans/create-pull-request
branch: monthly-npm-dependency-update
labels: automated-pr
delete-branch: true
1 change: 1 addition & 0 deletions frontend/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
min-release-age=7
Loading