forked from guilhem/rss-issues-action
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a workflow to verify that dist/ is up to date
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Verify that dist is compiled | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: npm ci | ||
- run: npm run lint | ||
- run: npm run prepare | ||
- name: Verify that `dist/index.js` is up to date | ||
shell: bash | ||
run: | | ||
# `ncc` might produce output with mixed line endings | ||
test -z "$(git diff -w HEAD | tee diff.txt)" || { | ||
echo 'Files changed after `npm run package`' | ||
cat diff.txt | ||
exit 1 | ||
} |