edited banner and header animations, still need to work on closing ba… #43
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Firebase Hosting | |
on: | |
push: | |
branches: | |
- master | |
- vite_ver | |
- nodejs-backend-test | |
pull_request: | |
types: [closed] | |
branches: | |
- master | |
- vite_ver | |
- nodejs-backend-test | |
jobs: | |
build: | |
if: github.event.pull_request.merged == true || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/vite_ver' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- name: Install pnpm | |
run: npm install -g pnpm | |
- name: Install dependencies for frontend | |
run: | | |
cd frontend | |
pnpm install --no-frozen-lockfile | |
- name: Build frontend | |
run: | | |
cd frontend | |
pnpm run build | |
- name: Install dependencies for backend | |
run: | | |
cd backend | |
pnpm install --no-frozen-lockfile | |
- name: Deploy to Firebase Hosting | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
run: | | |
npm install -g firebase-tools | |
cd backend | |
firebase deploy --only hosting,functions |