name: Fugu Edit Build and Deploy

on:
  push:
    paths:
      - 'fugu-edit/**/*'
      - .github/workflows/fugu-edit.yml
  pull_request:
    paths:
      - 'fugu-edit/**/*'
      - .github/workflows/fugu-edit.yml

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [12.x]
    steps:
      - name: Checkout
        uses: actions/checkout@v1
      - name: Switch Node Version ${{ matrix.node-version }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}
      - name: Install
        working-directory: ./fugu-edit
        run: |
          npm ci
      - name: Build and Test
        working-directory: ./fugu-edit
        run: |
          npm run build --if-present
        env:
          CI: true
      - name: Deploy to Firebase
        if: success() && github.ref == 'refs/heads/master'
        working-directory: ./fugu-journal
        run: npx -p firebase-tools firebase deploy --token ${FIREBASE_TOKEN}
        env:
          FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

name: Fugu Edit Build and Deploy

on:
  push:
    paths:
      - 'fugu-edit/**/*'
      - .github/workflows/fugu-edit.yml
  pull_request:
    paths:
      - 'fugu-edit/**/*'
      - .github/workflows/fugu-edit.yml

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [12.x]
    steps:
      - name: Checkout
        uses: actions/checkout@v1
      - name: Switch Node Version ${{ matrix.node-version }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}
      - name: Install
        working-directory: ./fugu-edit
        run: |
          npm ci
      - name: Build and Test
        working-directory: ./fugu-edit
        run: |
          npm run build --if-present
        env:
          CI: true
      - name: Deploy to Firebase
        if: success() && github.ref == 'refs/heads/master'
        working-directory: ./fugu-edit
        run: npx -p firebase-tools firebase deploy --token ${FIREBASE_TOKEN}
        env:
          FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

Fix working dir for edit deploy workflow
:bug: Fix working dir for edit deploy workflow
