Skip to content

use package.json for node-version #2874

use package.json for node-version

use package.json for node-version #2874

Workflow file for this run

name: Deploy Preview
on: pull_request
jobs:
build_and_preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version-file: package.json
- name: Create temp serviceAccount.json
run: echo "{}" > serviceAccount.json
- run: npm ci
- run: npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
# See docs/tutorials/04-deploy.md for configuring these
projectId: hoverboard-master
firebaseServiceAccount: '${{ secrets.FIREBASE_DEPLOY_SERVICE_ACCOUNT }}'