Skip to content

Initial commit

Initial commit #1

Workflow file for this run

name: Check Transpiled JavaScript
on:
pull_request:
branches:
- main
push:
branches:
- main
permissions:
contents: read
jobs:
check-dist:
name: dist/ up to date
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4.0.2
with:
cache: npm
- name: Install Dependencies
run: npm i
- name: Build dist/ Directory
run: npm run build
# This will fail the workflow if the `dist/` directory is different than
# expected.
- name: Compare Directories
run: |
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff --ignore-space-at-eol --text dist/
exit 1
fi