From 5a8df42322a7e9f0e72c20dd04ea350adcacb0f2 Mon Sep 17 00:00:00 2001 From: Siddharth Thevaril Date: Fri, 29 Mar 2024 22:07:56 +0530 Subject: [PATCH] update node to v20 --- .github/workflows/build-release-zip.yml | 4 ++-- .github/workflows/cypress.yml | 4 ++-- .github/workflows/dotorg-push-deploy.yml | 4 ++-- .github/workflows/lint.yml | 2 +- .nvmrc | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-release-zip.yml b/.github/workflows/build-release-zip.yml index ff6fb88..ec08597 100644 --- a/.github/workflows/build-release-zip.yml +++ b/.github/workflows/build-release-zip.yml @@ -24,9 +24,9 @@ jobs: key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - name: Setup node version and npm cache - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 16 + node-version-file: '.nvmrc' cache: 'npm' - name: Install Node dependencies diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 2b5fa18..3b891b7 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -22,11 +22,11 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Install dependencies - run: npm install + run: npm ci - name: Composer (optional) run: composer install continue-on-error: true - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' - name: Build (optional) diff --git a/.github/workflows/dotorg-push-deploy.yml b/.github/workflows/dotorg-push-deploy.yml index 09635f4..b6793fc 100644 --- a/.github/workflows/dotorg-push-deploy.yml +++ b/.github/workflows/dotorg-push-deploy.yml @@ -13,9 +13,9 @@ jobs: uses: actions/checkout@v3 - name: Setup node version - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 16 + node-version-file: '.nvmrc' - name: Build run: | diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9594937..08eb5e6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,7 +16,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Install node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' - name: npm install diff --git a/.nvmrc b/.nvmrc index 5edcff0..85aee5a 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v16 \ No newline at end of file +v20 \ No newline at end of file