-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (27 loc) · 959 Bytes
/
main.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
name: Main
on: [push]
jobs:
ci:
runs-on: ubuntu-latest
env:
VITE_BASE_URL: https://api.voicefu.com
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.14'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
registry-url: 'https://registry.npmjs.org'
- run: npm i
- run: npm run lint
- run: npm run pretty
- run: npm run tsc
- run: npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_VOICEFU_2ED11 }}'
channelId: live
projectId: voicefu-2ed11