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...
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.
Name | Description | Required |
---|---|---|
firebase-token | Firebase token you can get by running firebase login:ci |
✔ |
If you find our work useful, you can support our work and win a burrito 🌯