Monthly frontend dependency update and create PR #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 npm@11.10.0 | |
| - name: Update npm packages | |
| run: npm update | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 #v8 | |
| 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 |