ghaction-github-pages/.github/workflows/uncommited.yml
2019-10-20 04:52:34 +02:00

28 lines
619 B
YAML

name: uncommited
on:
pull_request:
push:
jobs:
changes:
runs-on: ubuntu-latest
steps:
-
# https://github.com/actions/checkout
name: Checkout
uses: actions/checkout@v1
-
name: Build
run: |
npm install
npm run build
npm run format
npm prune --production
-
name: Check for uncommitted changes
run: |
if [[ `git status --porcelain` ]]; then
echo "##[error] found changed files after build. please 'npm run build && npm run format && npm prune --production'"
fi