Skip to content

Merge pull request #240 from googlemaps:release-please--branches--mai… #841

Merge pull request #240 from googlemaps:release-please--branches--mai…

Merge pull request #240 from googlemaps:release-please--branches--mai… #841

Workflow file for this run

name: React
on: [push]
jobs:
check-generated-react:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- uses: google/wireit@setup-github-actions-caching/v1
- run: npm ci
- run: npm run build:react
env:
WIREIT_FAILURES: continue
- run: git add .
- run: |
if git diff --staged --name-only | grep "src/react"
then
echo ""
echo "********************************************************************************"
echo "* Please execute 'npm run build:react' and update your commit with the output! *"
echo "********************************************************************************"
exit 1
else
exit 0
fi