Skip to content

Commit efb1da7

Browse files
committed
feat: add dist/ freshness check to PR workflow
1 parent d8f7b06 commit efb1da7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/pull-request-verification.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ jobs:
1818
- run: |
1919
npm install
2020
npm run all
21+
- name: Check dist is up to date
22+
run: |
23+
if [ -n "$(git diff --name-only dist/)" ]; then
24+
echo "::error::dist/index.js is out of date. Run 'npm run all' and commit the result."
25+
git diff --stat dist/
26+
exit 1
27+
fi
2128
2229
test-inline:
2330
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)