Skip to content

Upgrade GitHub Actions packages (#6) #4

Upgrade GitHub Actions packages (#6)

Upgrade GitHub Actions packages (#6) #4

Workflow file for this run

name: check-dist
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
check-dist:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v6
- name: setup node
uses: actions/setup-node@v6
- name: npm ci
run: npm ci
- name: rebuild distribution code
run: npm run build
- name: validate distribution code
run: |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi