Created
April 14, 2020 18:30
-
-
Save daffl/fcf96ea7f71a515028883b68aab2cb21 to your computer and use it in GitHub Desktop.
GitHub action that updates all dependencies once a week
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
{ | |
"scripts": { | |
"update-dependencies": "ncu -u" | |
}, | |
"devDependencies": { | |
"npm-check-updates": "^4.1.2" | |
} | |
} |
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
on: | |
schedule: | |
- cron: '0 0 * * 0' | |
name: Update packages | |
jobs: | |
release: | |
name: Update npm packages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Update npm packages | |
uses: technote-space/[email protected] | |
with: | |
EXECUTE_COMMANDS: | | |
npm run update-dependencies | |
npm install | |
COMMIT_MESSAGE: 'chore(dependencies): Update all dependencies' | |
COMMIT_NAME: 'GitHub Actions' | |
COMMIT_EMAIL: '[email protected]' | |
PR_BRANCH_NAME: 'chore-npm-update-${PR_ID}' | |
PR_TITLE: 'chore(dependencies): Update all dependencies' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment