Skip to content

Use GitHub Actions cache v2 correctly #3

Use GitHub Actions cache v2 correctly

Use GitHub Actions cache v2 correctly #3

Workflow file for this run

name: CI
on:
push:
pull_request:
branches: [main]
jobs:
verify-dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: ./
with:
volumes: |
node_modules: ${{ hashFiles('package-lock.json') }}
- run: bin/setup
- run: bin/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 changes."
git diff dist/
exit 1
fi