Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firebase deploy #307

Closed
Anasmohana84 opened this issue May 9, 2023 · 2 comments
Closed

firebase deploy #307

Anasmohana84 opened this issue May 9, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Anasmohana84
Copy link

TL;DR

I'm working on a new Firebase project and I'm using GitHub action to deploy my Firebase function I got the new message Authenticating with --token is deprecated and will be removed in a future major version of firebase-tools. I have tried to use your auth to solve the problem but I can't find any document related to Firebase deployment. here is my code it works but I still use the --token arg

name: Deploy to Google
on:
  push:
    branches: [ main ]
env:
  PROJECT_ID: xxx"
jobs:
  build:
    runs-on: ubuntu-latest
    env:
      working-directory: ./
    strategy:
      matrix:
        node-version: [18.x]
    steps:
    - uses: actions/checkout@v2
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}
    - name: install libraries
      run: npm install
      working-directory: ${{env.working-directory}}
    - id: 'auth'
      name: 'Authenticate to Google Cloud'
      uses: 'google-github-actions/auth@v1'
      with:
        token_format: 'access_token'
        credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
    - name: install firebase
      run: npm i firebase-tools -g  
    - name: deploy
      run: |-
        firebase deploy --token $(echo '${{ steps.auth.outputs.access_token }}')

is there any way to remove the --token

Detailed design

No response

Additional information

No response

@Anasmohana84 Anasmohana84 added the enhancement New feature or request label May 9, 2023
@github-actions
Copy link

github-actions bot commented May 9, 2023

Hi there @Anasmohana84 👋!

Thank you for opening an issue. Our team will triage this as soon as we can. Please take a moment to review the troubleshooting steps which lists common error messages and their resolution steps.

@sethvargo
Copy link
Member

Hi @Anasmohana84 - this would be a better question for the firebase-cli team. You can open an issue on this repo: https://github.com/firebase/firebase-admin-node

Note that firebase does not support WIF yet (firebase/firebase-admin-node#1377).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants