Skip to content

build(deps): Bump the actions group with 2 updates #143

build(deps): Bump the actions group with 2 updates

build(deps): Bump the actions group with 2 updates #143

Workflow file for this run

name: Transpiled JavaScript
on:
workflow_dispatch:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
check-dist:
name: Check dist/
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version-file: .node-version
cache: npm
- name: Install Dependencies
run: npm ci
- name: Build dist/ Directory
run: npm run bundle
- name: Compare Directories
id: compare
shell: bash
run: |
if [ ! -d dist/ ]; then
echo "::error::Expected dist/ directory does not exist"
exit 1
fi
[ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -eq 0 ] && DIFF=false || DIFF=true
echo "diff=$DIFF" | tee -a "$GITHUB_OUTPUT"
if [ "$DIFF" == "true" ]; then
echo "::error::Detected uncommitted changes after build"
exit 1
fi
- name: Upload dist/
if: (!cancelled()) && steps.compare.outputs.diff == 'true'
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: dist
path: dist/