From 364168f3407c7cdd21da7cd1de6d9d930f89d99a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Weng?= Date: Fri, 2 Dec 2022 20:26:52 +0100 Subject: [PATCH] feat: add auto-update GitHub Actions --- .github/workflows/update-deps.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/update-deps.yml diff --git a/.github/workflows/update-deps.yml b/.github/workflows/update-deps.yml new file mode 100644 index 000000000..3a665077d --- /dev/null +++ b/.github/workflows/update-deps.yml @@ -0,0 +1,30 @@ +name: Update dependencies + +on: + workflow_dispatch: + schedule: + - cron: "0 0 1 * *" + +jobs: + update: + strategy: + matrix: + node-version: [16.x] + + name: Update all dependencies + runs-on: ubuntu-latest + + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + - run: npm ci + + - run: npx ncu -u # Update dependencies + - name: Create Pull Request + uses: peter-evans/create-pull-request@v4 + with: + commit-message: "chore: update dependencies to the latest version" + title: Update dependencies to the latest version