update-dependencies #178
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-dependencies | |
on: | |
schedule: | |
- cron: '0 0 * * 0' # Every Sunday at 00:00 | |
workflow_dispatch: | |
jobs: | |
update-dependencies: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Use Node.js from .nvmrc | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
- name: Update dependencies | |
run: npm update --save | |
- name: Install dependencies | |
run: npm ci | |
- name: Run Test | |
run: npm run test | |
- name: Run Lint | |
run: npm run lint | |
- name: Run Prettier | |
run: npm run prettier | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
commit-message: 'Update dependencies' | |
title: 'Update dependencies' | |
body: 'This PR updates the npm dependencies.' | |
branch: 'update-dependencies' |