Update Node.js Dependencies #81
This file contains 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: Update Node.js Dependencies | |
on: | |
schedule: | |
- cron: "0 3 * * 3" # 毎週水曜日の正午に実行 ( 12+JST = 3+UTC ) | |
workflow_dispatch: | |
jobs: | |
update-deps: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "18.x" | |
- name: Update dependencies | |
id: vars | |
run: | | |
npm i -g npm-check-updates | |
ncu -u -x @types/react | |
npm i && npm update | |
npm run build | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: update dependencies | |
title: Automated Dependency Updates | |
body: This is an auto-generated PR with dependency updates. | |
labels: dependencies | |
reviewers: solaoi | |
branch: dependencies | |
branch-suffix: timestamp |