Firebase No project active, but project aliases are available

I have this workflow file

name: Build and Deploy
on:
  push:
    branches:
      - main

jobs:
  build:
    name: Build
    env:
      REACT_APP_ENV: live build
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Repo
        uses: actions/checkout@master
      - name: Install Dependencies
        run: npm install
      - name: Build
        run: npm run build
      - name: Archive Production Artifact
        uses: actions/upload-artifact@master
        with:
          name: build
          path: build
  deploy:
    name: Deploy
    needs: build
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Repo
        uses: actions/checkout@master
      - name: Download Artifact
        uses: actions/download-artifact@master
        with:
          name: build
          path: build
      - name: Deploy to Firebase
        uses: w9jds/firebase-action@master
        with:
          args: deploy --only hosting:production
        env:
          FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

build is okay.
Deploy is not working and it gives me the error

Error: No project active, but project aliases are available.

Run firebase use with one of these options:

I’ve added this line based on the firebase official doc
args: deploy --only hosting:production

What’s wrong in this?

This is my .firebaserc file

{
  "projects": {
    "production": "gottamenu-admin",
    "development":"gotta-menu-ap"
  }
}