Merge pull request #240 from googlemaps:release-please--branches--mai… #841
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: 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 |