Skip to content
terminal

GitHub Action

Setup Firebase CLI with Service Account

v3 Pre-release

Setup Firebase CLI with Service Account

terminal

Setup Firebase CLI with Service Account

Setup firebase-tools CLI with Service Account

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup Firebase CLI with Service Account

uses: zalorg/action-setup-firebase@v3

Learn more about this action in zalorg/action-setup-firebase

Choose a version

πŸ”₯ setup-firebase

Setup firebase-tools CLI for multiple steps

GitHub Workflow Status GitHub release (latest by date) GitHub

🧠 Why

There is an excellent action already: firebase-action, but it forces you to run a command in order to work.

With this one, after running the action you can use the firebase-tools CLI from anywhere: npm script, shell...

πŸš€ Usage

Simply add the action to get access to the firebase CLI.

jobs:
  setup-firebase:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v1 # This is optional on linux and macOS
      - uses: pocket-apps/action-setup-firebase@v2
        with:
          firebase-token: YOUR_TOKEN

By default, it will try to download the package from npm, if it fails because npm is not installed, or it doesn't have sufficient permissions, the action will fallback to download it using curl.

If you are running it on Windows you will need to use actions/setup-node before in order to work.

βš™ Inputs

Name Description Required
firebase-token Firebase token you can get by running firebase login:ci βœ”

πŸ‘‹ Support

If you find our work useful, you can support our work and win a burrito 🌯