From a9190a0fb31af342699585bbde4f8861e2789779 Mon Sep 17 00:00:00 2001 From: Thiren Bunsee Date: Thu, 12 Sep 2024 13:35:50 +0200 Subject: [PATCH] ci: optimised the CI pipeline and updated dependencies --- .github/workflows/ci-build.yml | 16 ++++++---------- .github/workflows/ci-codeql-analysis.yml | 4 ---- .github/workflows/ci-npm-publish.yml | 12 ++++++------ 3 files changed, 12 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 9c4a6b4..e11fc98 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -2,10 +2,6 @@ name: "Build" on: push: - branches: [master, develop] - pull_request: - # The branches below must be a subset of the branches above - branches: [master, develop] workflow_dispatch: inputs: reason: @@ -22,10 +18,10 @@ jobs: timeout-minutes: 5 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 14 + node-version: 18 registry-url: https://registry.npmjs.org/ # Skip post-install scripts here, as a malicious # script could steal NODE_AUTH_TOKEN. @@ -44,10 +40,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 14 + node-version: 18 registry-url: https://registry.npmjs.org/ # Skip post-install scripts here, as a malicious # script could steal NODE_AUTH_TOKEN. diff --git a/.github/workflows/ci-codeql-analysis.yml b/.github/workflows/ci-codeql-analysis.yml index ddec1c8..ce79a57 100644 --- a/.github/workflows/ci-codeql-analysis.yml +++ b/.github/workflows/ci-codeql-analysis.yml @@ -2,10 +2,6 @@ name: "CodeQL Analysis" on: push: - branches: [master, develop] - pull_request: - # The branches below must be a subset of the branches above - branches: [master, develop] workflow_dispatch: inputs: reason: diff --git a/.github/workflows/ci-npm-publish.yml b/.github/workflows/ci-npm-publish.yml index 28533bf..02e92e2 100644 --- a/.github/workflows/ci-npm-publish.yml +++ b/.github/workflows/ci-npm-publish.yml @@ -11,10 +11,10 @@ jobs: timeout-minutes: 5 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 14 + node-version: 20 registry-url: https://registry.npmjs.org/ # Skip post-install scripts here, as a malicious # script could steal NODE_AUTH_TOKEN. @@ -28,10 +28,10 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 14 + node-version: 20 registry-url: https://registry.npmjs.org/ # Skip post-install scripts here, as a malicious # script could steal NODE_AUTH_TOKEN.