feat: fix pnpm action #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Firebase Hosting | |
# on: | |
# push: | |
# branches: | |
# - main | |
on: | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js and pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Install Firebase CLI | |
run: pnpm install -g firebase-tools | |
- name: Install dependencies | |
run: pnpm install | |
- name: Login to Firebase | |
run: firebase login | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
- name: Build your app | |
run: pnpm deploy:site |