Skip to content

Merge pull request #684 from UnUniFi/develop #105

Merge pull request #684 from UnUniFi/develop

Merge pull request #684 from UnUniFi/develop #105

name: CD Firebase ununifi-test
on:
push:
branches:
- 'main'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm i -g npm@8.19.4
- run: npm ci
- run: npm run build:all:prod:ununifi-test
- run: npx firebase deploy --only hosting:ununifi-test --project=default --token=${{ secrets.FIREBASE_TOKEN }}