Skip to content

build(deps-dev): bump handlebars from 4.7.8 to 4.7.9 #3

build(deps-dev): bump handlebars from 4.7.8 to 4.7.9

build(deps-dev): bump handlebars from 4.7.8 to 4.7.9 #3

Workflow file for this run

name: Check dist/
on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
workflow_dispatch:
jobs:
check-dist:
name: Check dist/
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build and package
run: |
npm run build
npm run package
- name: Compare expected and actual directories
id: diff
run: |
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build."
echo ""
echo "You should run 'npm run package' locally and commit the changes:"
echo ""
git diff --text dist/
echo ""
exit 1
fi
- name: Upload dist artifact
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/