Skip to content

fix target10a air

fix target10a air #81

# 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:
- master
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-modules-
${{ runner.os }}-
- name: Install dependencies
run: npm ci --cache-min=9999 --no-audit --progress=false
- name: Check prettier
run: npm run prettier:check
- name: Check linter
run: npm run lint
# - name: Check unit tests
# run: npm run test:unit
# - name: Check e2e tests
# run: npm run test:e2e:headless
build_and_deploy:
runs-on: ubuntu-latest
needs: [tests]
steps:
- uses: actions/checkout@v3
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_HANGTIME_APP }}'
channelId: live
projectId: hangtime-app