Skip to content

Commit

Permalink
Fail the build if npm run all produces a diff
Browse files Browse the repository at this point in the history
This indicates that the latest version of the package hasn't been checked in
  • Loading branch information
Barry Gordon committed Sep 27, 2021
1 parent 6c423dd commit d028222
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
- uses: actions/checkout@v2
- run: npm ci
- run: npm run all
# make sure the latest dist/ changes have been pushed
- run: git diff --quiet
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit d028222

Please sign in to comment.