Skip to content

Merge pull request #784 from ZenUml/feat/remove-survey #2284

Merge pull request #784 from ZenUml/feat/remove-survey

Merge pull request #784 from ZenUml/feat/remove-survey #2284

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Deploy to Stage
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm install && pnpm build
- run: pnpm release
- name: Setup Firebase service account
run: |
echo '${{ secrets.FIREBASE_SERVICE_ACCOUNT_STAGING }}' > /tmp/gcp-key.json
export GOOGLE_APPLICATION_CREDENTIALS=/tmp/gcp-key.json
- run: |
export GOOGLE_APPLICATION_CREDENTIALS=/tmp/gcp-key.json
cd functions && pnpm install && pnpm deploy:config:staging
- name: Deploy to staging
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' # This conditional will skip the step for Dependabot PRs
run: |
export GOOGLE_APPLICATION_CREDENTIALS=/tmp/gcp-key.json
pnpm deploy:staging
- name: Upload artifacts # Find artifacts under actions/jobs
uses: actions/upload-artifact@v4
with:
name: chrome-extension
path: extension