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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.