There was an unknown problem while trying to parse function triggers. Please ensure you are using Node.js v6 or greater.
My `functions/package.json` specifies `{engine: { node: 8 }}` and I am using firebase-deploy 0.3.6.
Deploying hosting worked fine with `EXTRA_ARGS: '--only hosting'`. However, removing this results in the error above.
My bitbucket-pipelines.yml:
image: node:8.16.2
pipelines:
branches:
develop:
- step:
name: Build for test
script:
- npm install
- npm run build:ci:staging
artifacts:
- build/**
- step:
name: Deploy to test -> test.sway.surf
deployment: test
script:
- cd functions; npm install; cd ..
- pipe: atlassian/firebase-deploy:0.3.6
variables:
FIREBASE_TOKEN: $FIREBASE_TOKEN
PROJECT_ID: $FIREBASE_PROJECT
DEBUG: 'true'
- step:
name: Build for production
script:
- npm install
- npm run build:ci:production
artifacts:
- build/**
- step:
trigger: manual
name: Deploy to production -> sway.surf
deployment: production
script:
- cd functions; npm install; cd ..
- pipe: atlassian/firebase-deploy:0.3.6
variables:
FIREBASE_TOKEN: $FIREBASE_TOKEN
PROJECT_ID: $FIREBASE_PROJECT
From setup to deployment—this learning path shows you how to build your first app using Forge. Learn the essentials, streamline workflows, and bring custom solutions to life across Jira, Confluence, and more.
Start Learning