TransmissionsDev
TransmissionsDev

Reputation: 398

Firebase Github Deploy Cannot Parse travis.yml

I am trying to follow this tutorial to deploy to firebase from github using travis CI. https://medium.com/@cpavnn/deploy-to-firebase-hosting-from-github-3772fed05e72

For my .travis.yml file I used:

language: node_js

node_js:
 — "7"

before_script:
 — npm install -g firebase-tools

script:
 — echo "Deploy!!"

after_success:
 — firebase deploy — project projectId — token $FIREBASE_TOKEN.`

But every time I deploy I get this error:

What can I do?

Upvotes: 2

Views: 298

Answers (1)

sketchthat
sketchthat

Reputation: 2688

Try putting node_js: 7 on the one line without quotes.

I haven't tested this, but this is a format I usually use.

language: node_js

node_js: 7

before_script:
- npm install -g firebase-tools

script:
- firebase deploy --project projectId --token $FIREBASE_TOKEN

Don't forget to add your secret FIREBASE_TOKEN into Travis CI and in addition replace projectId to your Firebase project id.

The Medium article your outlined looks to have invalid characters in the YAML. Try typing it out instead of a copy & paste.

Upvotes: 1

Related Questions