Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Check dist

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
check-dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7

- name: Set up Node
uses: actions/setup-node@v7
with:
node-version-file: 'package.json'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build dist
run: npm run build

- name: Check for uncommitted changes
run: |
if [ -n "$(git status --porcelain dist/)" ]; then
echo "::error::dist/ is out of date. Run 'npm run build' and commit the result."
git diff dist/
exit 1
fi
Loading