Skip to content

Commit c10c4e2

Browse files
committed
ci: verify that npm run package was run
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 986a257 commit c10c4e2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@ jobs:
1515
- run: npm ci
1616
- run: npm run build
1717
- run: npm run test
18+
- run: npm run package
19+
- name: Verify that `dist/index.js` is up to date
20+
shell: bash
21+
run: |
22+
# `ncc` produces output with mixed line endings
23+
test -z "$(git diff -w HEAD | tee diff.txt)" || {
24+
echo 'Files changed after `npm run package`'
25+
cat diff.txt
26+
exit 1
27+
}
1828
test: # make sure the action works on a clean machine without building
1929
runs-on: windows-latest
2030
steps:

0 commit comments

Comments
 (0)