Skip to content

Create codeql.yml

Create codeql.yml #106

name: Deploy to Firebase Hosting on PR
on:
pull_request:
jobs:
build_and_preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Cache build assets
uses: actions/cache@v4
with:
path: .angular
key: ${{ runner.os }}-ng-${{ hashFiles('src/**') }}
restore-keys: |
${{ runner.os }}-ng-
- run: npm ci && npm run build:prod
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_FUKAGAWA_COFFEE }}"
projectId: fukagawa-coffee