Skip to content

chore(deps-dev): bump vitest from 4.1.7 to 4.1.8 (#36) #15

chore(deps-dev): bump vitest from 4.1.7 to 4.1.8 (#36)

chore(deps-dev): bump vitest from 4.1.7 to 4.1.8 (#36) #15

Workflow file for this run

# In TypeScript actions, `dist/` is a special directory. When you reference
# an action with `uses:`, `dist/index.js` is the code that will be run. This
# workflow ensures `dist/` contains the expected transpiled code.
name: Check Transpiled JavaScript
on:
pull_request:
branches:
- main
push:
branches:
- main
permissions:
contents: read
jobs:
check-dist:
name: Check dist/
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up pnpm
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
with:
version: 11.1.2
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Remove dist/ directory
run: pnpm run clean
- name: Build dist/ directory
run: pnpm run build
- name: Compare dist/ directory
run: |
if [ ! -d dist/ ]; then
echo "Expected dist/ directory does not exist. See status below:"
ls -la ./
exit 1
fi
if [ -n "$(git status --porcelain --untracked-files=all -- dist/)" ]; then
echo "Detected uncommitted changes after build. See status below:"
git status --short --untracked-files=all -- dist/
git diff --ignore-space-at-eol -- dist/
exit 1
fi