chore(deps): update npm dev dependencies #132
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
name: Verify bundle is fresh | |
on: | |
pull_request: | |
merge_group: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
check-bundle: | |
name: Check bundle is fresh | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .node-version | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Bundle | |
run: npm run bundle | |
- name: Check bundle | |
id: diff | |
run: | | |
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then | |
echo "Detected uncommitted changes after build. See status below:" | |
git diff --ignore-space-at-eol --text dist/ | |
exit 1 | |
fi |