From 90b6967ae8057d1558fe7032d5accc02e9551d1b Mon Sep 17 00:00:00 2001 From: MexicanAce Date: Wed, 17 Jan 2024 12:41:33 +0000 Subject: [PATCH] fix: only update deployments to node 18 --- .github/workflows/deploy-preview.yml | 9 +++++++-- .github/workflows/deploy-prod.yml | 11 ++++++++--- .github/workflows/deploy-staging.yml | 10 ++++++++-- .github/workflows/release.yml | 4 ++-- 4 files changed, 25 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 95c27251b..80e60513c 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -24,10 +24,10 @@ jobs: - name: "Enable yarn cache" uses: c-hive/gha-yarn-cache@v2 # using cache - - name: "Setup node@18" + - name: "Setup node@16" uses: actions/setup-node@v2 with: - node-version: 18 + node-version: 16 - name: "Install dependencies" run: | @@ -41,6 +41,11 @@ jobs: - name: "Generate dist (default network: goerli)" run: yarn run ci:build:goerli + - name: "Setup node@18" + uses: actions/setup-node@v2 + with: + node-version: 18 + - name: "Deploy preview" uses: matter-labs/action-hosting-deploy@main id: deploy_preview diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index a529d8b84..04e4ad8ca 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -29,10 +29,10 @@ jobs: - name: "Enable yarn cache" uses: c-hive/gha-yarn-cache@v2 # using cache - - name: "Setup node@18" + - name: "Setup node@16" uses: actions/setup-node@v2 with: - node-version: 18 + node-version: 16 - name: "Install dependencies" run: | @@ -46,7 +46,12 @@ jobs: uses: actions/setup-node@v2 with: node-version: 'lts/*' - + + - name: "Setup node@18" + uses: actions/setup-node@v2 + with: + node-version: 18 + - name: "Deploy target: prod-mainnet" uses: matter-labs/action-hosting-deploy@main with: diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index c7047965d..2206390f9 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -17,10 +17,10 @@ jobs: - name: "Enable yarn cache" uses: c-hive/gha-yarn-cache@v2 # using cache - - name: "Setup node@18" + - name: "Setup node@16" uses: actions/setup-node@v2 with: - node-version: 18 + node-version: 16 - name: "Install dependencies" run: | @@ -29,6 +29,12 @@ jobs: - name: "Deploy target: stage-mainnet" run: yarn run ci:build:prod + + - name: "Setup node@18" + uses: actions/setup-node@v2 + with: + node-version: 18 + - uses: matter-labs/action-hosting-deploy@main with: repoToken: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f30d099c4..96f54afee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,10 +23,10 @@ jobs: - name: "Enable yarn cache" uses: c-hive/gha-yarn-cache@v2 # using cache - - name: "Setup node@18" + - name: "Setup node@16" uses: actions/setup-node@v2 with: - node-version: 18 + node-version: 16 - name: "Install dependencies" run: |