From 0c90a626c15fccbafe487c9fbf5388c715fb0946 Mon Sep 17 00:00:00 2001 From: Maksym Kryva Date: Fri, 12 Jan 2024 14:55:47 +0200 Subject: [PATCH 1/2] ci: pin firebase tools to 12.9.1 --- .github/workflows/deploy-preview.yml | 4 ++++ .github/workflows/deploy-prod.yml | 4 ++++ .github/workflows/release.yml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 91223d51..fa9170fa 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -34,6 +34,10 @@ jobs: - name: "Run linters (markdownlint & cspell)" run: yarn ci:lint + - name: Change firebase cli version + run: | + npm install -g firebase-tools@12.9.1 + - name: "Deploy preview" run: yarn docs:build - uses: matter-labs/action-hosting-deploy@main diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 8025687d..5b4dbe62 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -25,6 +25,10 @@ jobs: target: "dist.zip" token: ${{ secrets.GITHUB_TOKEN }} + - name: Change firebase cli version + run: | + npm install -g firebase-tools@12.9.1 + - name: Unzip Dist package run: unzip dist.zip -d ./ - uses: matter-labs/action-hosting-deploy@main diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8abc5c81..164beeb2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,10 @@ jobs: yarn set version 3.2.0 yarn install + - name: Change firebase cli version + run: | + npm install -g firebase-tools@12.9.1 + - name: "Build & deploy to staging" run: yarn docs:build - uses: matter-labs/action-hosting-deploy@main From dd637b57c82ec618cd4802c6cb7ce0159d2039d9 Mon Sep 17 00:00:00 2001 From: Maksym Kryva Date: Fri, 12 Jan 2024 15:04:23 +0200 Subject: [PATCH 2/2] ci: pin firebase tools to 12.9.1 --- .github/workflows/deploy-preview.yml | 5 +---- .github/workflows/deploy-prod.yml | 7 ++----- .github/workflows/release.yml | 5 +---- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index fa9170fa..547e81ce 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -34,14 +34,11 @@ jobs: - name: "Run linters (markdownlint & cspell)" run: yarn ci:lint - - name: Change firebase cli version - run: | - npm install -g firebase-tools@12.9.1 - - name: "Deploy preview" run: yarn docs:build - uses: matter-labs/action-hosting-deploy@main with: + firebaseToolsVersion: 12.9.1 repoToken: "${{ secrets.GITHUB_TOKEN }}" firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZSYNC_WEB_DOCS_PROD }}" projectId: zksync-web-docs diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 5b4dbe62..4d3e1555 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -24,11 +24,7 @@ jobs: file: "dist.zip" target: "dist.zip" token: ${{ secrets.GITHUB_TOKEN }} - - - name: Change firebase cli version - run: | - npm install -g firebase-tools@12.9.1 - +z - name: Unzip Dist package run: unzip dist.zip -d ./ - uses: matter-labs/action-hosting-deploy@main @@ -38,5 +34,6 @@ jobs: channelId: live target: prod projectId: zksync-web-docs + firebaseToolsVersion: 12.9.1 env: FIREBASE_CLI_PREVIEWS: hostingchannels diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 164beeb2..4cd23010 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,10 +33,6 @@ jobs: yarn set version 3.2.0 yarn install - - name: Change firebase cli version - run: | - npm install -g firebase-tools@12.9.1 - - name: "Build & deploy to staging" run: yarn docs:build - uses: matter-labs/action-hosting-deploy@main @@ -44,6 +40,7 @@ jobs: repoToken: "${{ secrets.GITHUB_TOKEN }}" firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZSYNC_WEB_DOCS_PROD }}" projectId: zksync-web-docs + firebaseToolsVersion: 12.9.1 target: staging channelId: live env: