No need uncommitted workflow

This commit is contained in:
CrazyMax 2019-11-14 23:37:32 +01:00
parent 730e0e9d77
commit e663a3f192
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
1 changed files with 0 additions and 37 deletions

View File

@ -1,37 +0,0 @@
name: uncommited
on:
pull_request:
push:
jobs:
changes:
runs-on: ubuntu-latest
steps:
-
# https://github.com/actions/checkout
name: Checkout
uses: actions/checkout@v1
-
# https://github.com/actions/setup-node
name: Set up Node
uses: actions/setup-node@v1
-
name: Build
run: |
npm install
npm run format
npm run build
-
name: Prune prod
run: |
rm -rf node_modules
npm install --production
-
name: Check for uncommitted changes
run: |
if [[ `git status --porcelain` ]]; then
git status --porcelain
echo "##[error] found changed files after build. please 'npm run build && npm run format && npm prune --production'"
exit 1
fi