Skip to content

Fix for hasOwn property (#302) #98

Fix for hasOwn property (#302)

Fix for hasOwn property (#302) #98

Workflow file for this run

name: Build and Deploy Web - PRODUCTION
on:
push:
tags:
- v*
paths-ignore:
- packages/functions/**
- packages/app/**
env:
FB_PROJECT: coh2-ladders-prod
FB_HOSTING: hosting:coh2-ladders-prod
jobs:
build-deploy-web:
name: Deploy Web Prod
environment:
name: prod
url: https://coh2stats.com/
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@master
with:
node-version: "16.x"
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules-v1
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Install Deps
run: yarn install
- name: Fix the bug ISSUE 1078
run: yarn run "react-spring-issue-1078"
- name: Build the app
run: |
export NODE_OPTIONS=--max_old_space_size=4096
CI=false yarn web build
# When we release the electron app - it's build slower than the web release, we should probably have something better than this
# probably we can merge it together into one deploy job/release.
- name: Sleep for 240 seconds
run: sleep 240s
shell: bash
- name: Deploy to Firebase
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN_CI_PROD}}
# Something is wrong with firebase-tools in the CI
run: |
npm install -g firebase-tools
firebase use $FB_PROJECT --token $FIREBASE_TOKEN
firebase deploy --only $FB_HOSTING --token $FIREBASE_TOKEN -m "CI deploy ${{ steps.get_version.outputs.VERSION }}" --non-interactive