From 07716195f9a789c4ee6b8383babaadb5da955919 Mon Sep 17 00:00:00 2001 From: PythonCoderAS <13932583+PythonCoderAS@users.noreply.github.com> Date: Sat, 4 Jun 2022 19:16:36 -0400 Subject: [PATCH 1/2] Auto update PR + add node 18 for testing --- .github/workflows/auto-update.yml | 32 +++++++++++++++++++++++++++++++ .github/workflows/lint.yml | 2 +- .github/workflows/main.yml | 2 +- 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/auto-update.yml diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml new file mode 100644 index 00000000..dc1bfb1e --- /dev/null +++ b/.github/workflows/auto-update.yml @@ -0,0 +1,32 @@ +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 From 54f756f0c48f62f4f8177c8f2f7f76076405aea7 Mon Sep 17 00:00:00 2001 From: PythonCoderAS <13932583+PythonCoderAS@users.noreply.github.com> Date: Sat, 4 Jun 2022 19:17:42 -0400 Subject: [PATCH 2/2] Lint --- .github/workflows/auto-update.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index dc1bfb1e..cc5d6031 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -29,4 +29,3 @@ jobs: branch-suffix: "timestamp" labels: "auto-npm-update,dependencies,javascript" delete-branch: true -