Skip to content

Improving website

Improving website #13

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on PR
'on': pull_request
jobs:
website_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
steps:
- name: "Checkout code"
uses: actions/checkout@v4
- name: "Setup Node.js"
uses: actions/setup-node@v3
with:
node-version: 18
- name: "Setup Firebase"
uses: w9jds/setup-firebase@main
with:
tools-version: 11.9.0
firebase_token: ${{ secrets.FIREBASE_TOKEN }}
- run: cd website
- name: "Install Dependencies"
run: npm install
- name: "Build"
run: npm run build
- name: "Test"
run: npm test
- name: "Deploy preview to Firebase"
run: firebase hosting:channel:deploy PR-${{ github.event.number }} --expires 1d