diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml new file mode 100644 index 00000000..cc5d6031 --- /dev/null +++ b/.github/workflows/auto-update.yml @@ -0,0 +1,31 @@ +name: Auto NPM Update + +# Controls when the workflow will run +on: + workflow_dispatch: + schedule: + - cron: "0 0 * * *" # Runs every day at midnight + +jobs: + update: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup node + uses: actions/setup-node@v3.2.0 + with: + node-version: 18 + - name: Update dependencies + run: npm upgrade + - name: Create Pull Request + uses: peter-evans/create-pull-request@v4 + with: + title: "Auto NPM Update" + body: "This PR was created automatically by the Auto NPM Update workflow." + signoff: true + commit-message: "Update dependencies via `npm upgrade`." + branch: "create-pull-request/auto-npm-update" + branch-suffix: "timestamp" + labels: "auto-npm-update,dependencies,javascript" + delete-branch: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6d2fe9e2..7bc0f4e6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -30,7 +30,7 @@ jobs: strategy: matrix: - node: ["17"] + node: ["17", "18"] name: Node ${{ matrix.node }} lint diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 29ffdeae..5e827560 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,7 +32,7 @@ jobs: strategy: matrix: - node: ["17"] + node: ["17", "18"] name: Node ${{ matrix.node }} build # Steps represent a sequence of tasks that will be executed as part of the job