Skip to content

build(deps-dev): bump eslint from 9.39.2 to 10.0.0 #52

build(deps-dev): bump eslint from 9.39.2 to 10.0.0

build(deps-dev): bump eslint from 9.39.2 to 10.0.0 #52

Workflow file for this run

name: Check Dist
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check-dist:
name: Check dist/
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Rebuild the dist/ directory
run: npm run build
- name: Compare the expected and actual dist/ directories
id: diff
run: |
# Ignore file mode and line ending differences
git config core.fileMode false
if [ "$(git diff --ignore-space-at-eol --ignore-cr-at-eol --ignore-blank-lines dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff --ignore-space-at-eol --ignore-cr-at-eol dist/
exit 1
fi
- name: Upload dist artifact for inspection
if: failure() && steps.diff.outcome == 'failure'
uses: actions/upload-artifact@v6
with:
name: dist
path: dist/