Update dependencies #8
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 1 1 *' | |
workflow_dispatch: | |
jobs: | |
update-dependencies: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
- run: npm ci | |
- run: npm run ci-deps >/tmp/ci-deps.txt | |
- run: | | |
git config user.name "GitHub Actions Bot" | |
git config user.email "[email protected]" | |
git checkout -b update-deps-$GITHUB_RUN_ID | |
- run: npm run ci-update-deps | |
- run: npm i --legacy-peer-deps | |
- run: npm audit fix || true | |
- run: | | |
git commit -am "Update dependencies (auto)" | |
git push origin update-deps-$GITHUB_RUN_ID | |
- run: | | |
gh pr create --title "[deps]: Update all dependencies" --body-file /tmp/ci-deps.txt | |
env: | |
GITHUB_TOKEN: ${{secrets.CI_ACCESS_TOKEN}} |