-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (35 loc) · 1.21 KB
/
firebase-hosting-pull-request.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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:
paths-ignore:
- '.github/workflows/dependency-review.yml'
- '.github/workflows/main.yml'
- '.editorconfig'
- '**.md'
- '.vscode/**'
- 'dprint.json'
- 'renovate.json'
- '.denolint.json'
jobs:
build_and_preview:
if: ${{ (github.event.pull_request.head.repo.full_name == github.repository) && (! contains(github.actor, '[bot]')) }}
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: npm
node-version-file: '.node-version'
- name: install dependencies
run: npm ci --ignore-scripts
- name: Specify actual commit ref for revisions
run: echo VITE_COMMIT_REF=${{ github.event.pull_request.head.sha }} > .env
- run: npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_MOBU_WAIWAI }}'
projectId: mobu-waiwai