From 0c377903818bd859e96a69f3b8052499ecfbbfbb Mon Sep 17 00:00:00 2001 From: Sarju Hansaliya Date: Wed, 10 Apr 2024 16:14:51 +0530 Subject: [PATCH] fix: update actions to latest version --- .github/workflows/integration-tests.yml | 2 +- .github/workflows/publish-beta.yml | 8 ++++---- .github/workflows/release-please.yml | 6 +++--- .github/workflows/unit-test.yml | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 0ae9836..001d249 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Run docker compose tests run: | diff --git a/.github/workflows/publish-beta.yml b/.github/workflows/publish-beta.yml index eae08d5..f5adb4f 100644 --- a/.github/workflows/publish-beta.yml +++ b/.github/workflows/publish-beta.yml @@ -13,17 +13,17 @@ jobs: steps: # Checkout project repository - name: Checkout - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v4 # Setup Node.js environment - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: registry-url: https://registry.npmjs.org/ - node-version: 16 + node-version: 20 # Use a cache for dependencies - - uses: actions/cache@v2.1.4 + - uses: actions/cache@v4 with: path: "**/node_modules" key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 587253d..431606e 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -18,13 +18,13 @@ jobs: package-name: release-please-action token: ${{ secrets.GHA_NODEJS_TOKEN }} # The logic below handles the npm publication: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # these if statements ensure that a publication only occurs when # a new release is created: if: ${{ steps.release.outputs.release_created }} - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 registry-url: "https://registry.npmjs.org" if: ${{ steps.release.outputs.release_created }} - run: npm i diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index eaa5b23..cfc4f0d 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -6,9 +6,9 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - run: npm i - run: npm test