chore(deps): bump @grpc/grpc-js, firebase-admin and firebase-functions in /functions #573
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Deploy preview" | |
concurrency: | |
group: deploy-pr-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
workflow_dispatch: | |
inputs: | |
network: | |
type: string | |
required: true | |
default: "goerli" | |
description: "target/env: mainnet, goerli, goerli-beta" | |
jobs: | |
build_and_preview: | |
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} || ${{ github.event.repository.full_name == github.repository }} | |
runs-on: ubuntu-latest | |
environment: test | |
steps: | |
- uses: actions/checkout@v2 | |
- name: "Enable yarn cache" | |
uses: c-hive/gha-yarn-cache@v2 # using cache | |
- name: "Setup node@16" | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: "Install dependencies" | |
run: | | |
yarn set version 3.1.1 | |
yarn install | |
- name: "Lint check" | |
run: | | |
yarn lint --max-warnings 0 | |
- 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 | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZKSYNC_VUE }}" | |
target: stage-mainnet | |
projectId: zksync-vue | |
channelId: 'version-${{ github.ref }}' | |
- name: "Prepare /functions/" | |
run: npm --prefix functions i | |
- name: "Deploy functions to firebase (staging)" | |
uses: w9jds/firebase-action@master | |
with: | |
args: deploy --only functions | |
env: | |
FIREBASE_TOKEN: '${{ secrets.FIREBASE_DEPLOY_TOKEN }}' |