-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (48 loc) · 1.63 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
37
38
39
40
41
42
43
44
45
46
47
48
49
# 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/dependabot.yml'
- '.github/workflows/dependency-review.yml'
- '.github/workflows/merge-bot-pr.yml'
- '.editorconfig'
- 'README.md'
- '.vscode/**'
- 'dprint.json'
- '.eslintrc.js'
jobs:
asdf-parser:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: kachick/action-parse-asdf-tool-versions@v1
id: parse
outputs:
tool-versions: '${{ steps.parse.outputs.json }}'
build_and_preview:
needs: [asdf-parser]
if: ${{ (github.event.pull_request.head.repo.full_name == github.repository) && (github.actor != 'dependabot[bot]') && (github.actor != 'renovate[bot]') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
node-version: '${{ fromJson(needs.asdf-parser.outputs.tool-versions).nodejs }}'
- name: install dependencies
run: npm ci --ignore-scripts
- run: 'npm run build'
- name: Wait other jobs
uses: kachick/wait-other-jobs@v1
timeout-minutes: 15
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: >-
${{ secrets.FIREBASE_SERVICE_ACCOUNT_COLOR_JSON_TERMINAL_AND_VSCODE }}
projectId: color-json-terminal-and-vscode