Skip to content

fix: update tanstack-query monorepo to v5.61.0 (#2861) #6936

fix: update tanstack-query monorepo to v5.61.0 (#2861)

fix: update tanstack-query monorepo to v5.61.0 (#2861) #6936

Workflow file for this run

name: Push
on:
- push
jobs:
backend:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use node
uses: actions/[email protected]
with:
node-version-file: ".nvmrc"
- run: npm i
working-directory: backend
- run: npm run build
working-directory: backend
- name: Sentry Release
if: github.ref == 'refs/heads/main'
uses: getsentry/[email protected]
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
with:
sourcemaps: backend/build-web
environment: production
ignore_empty: true
projects: web
- uses: "google-github-actions/auth@v2"
if: github.ref == 'refs/heads/main'
with:
credentials_json: "${{ secrets.GOOGLE_CREDENTIALS }}"
- name: Deploy
if: github.ref == 'refs/heads/main'
run: |
echo "${API_ENV_YAML}" >> .env.yaml
gcloud functions deploy api --gen2 \
--region=europe-west1 \
--runtime=nodejs20 \
--trigger-http \
--env-vars-file .env.yaml \
--memory=1G \
--allow-unauthenticated
working-directory: backend
env:
API_ENV_YAML: ${{ secrets.API_ENV_YAML }}
browser-extension:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Use node
uses: actions/[email protected]
with:
node-version-file: ".nvmrc"
- run: npm i
working-directory: browser-extension
- run: npm run build
working-directory: browser-extension
frontend:
runs-on: ubuntu-22.04
env:
# 7 GiB by default on GitHub, setting to 6 GiB
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
NODE_OPTIONS: --max-old-space-size=6144
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use node
uses: actions/[email protected]
with:
node-version-file: ".nvmrc"
- run: npm ci
working-directory: backend
- run: npm ci
working-directory: frontend
- name: Lint
run: npm run lint
working-directory: frontend
- name: Build
run: npm run build
working-directory: frontend
- name: Deploy
run: npm run deploy -- --prod
if: github.ref == 'refs/heads/main'
working-directory: frontend
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
- name: Sentry Release
if: github.ref == 'refs/heads/main'
uses: getsentry/[email protected]
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
with:
sourcemaps: frontend/build/static/js
environment: production
ignore_empty: true
projects: frontend