name: "frontend:deploy:chromatic" on: push: branches: - master jobs: build-and-deploy: name: Chromatic - Frontend runs-on: ubuntu-latest env: CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} WORKING_DIRECTORY: ./frontend steps: - name: Checkout code uses: actions/checkout@9a9194f87191a7e9055e3e9b95b8cfb13023bb08 # v4.1.7 with: fetch-depth: 0 - name: Frontend | Build run: npm install && npm run chromatic -- --exit-zero-on-changes working-directory: ${{env.WORKING_DIRECTORY}}