Skip to content

Run npm audit fix

Run npm audit fix #110

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on merge
'on':
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup enviroment variables
run: |
echo "VITE_RECHESS_FIREBASE_API_KEY=${{ secrets.RECHESS_FIREBASE_API_KEY }}" >> .config/.env.local
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Get node version
id: node
run: echo "version=$(node -v)" >> $GITHUB_OUTPUT
- name: Install wasm-pack
uses: jetli/[email protected]
with:
version: 'latest'
- name: General cache
uses: actions/cache@v3
with:
path: |
~/.npm
~/.cargo
~/.rustup
./protochess-engine/protochess-engine-wasm/target
key: ${{ runner.os }}-general
- name: node_modules cache
uses: actions/cache@v3
with:
path: |
**/node_modules
key: ${{ runner.os }}-node-${{ steps.node.outputs.version }}-${{ hashFiles('**/package-lock.json') }}
- run: npm ci
- name: Build
run: npm run build
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy
env:
GCP_SA_KEY: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_RECHESS_WEB }}'
PROJECT_ID: rechess-web