Skip to content

cleanup and standardize output names #72

cleanup and standardize output names

cleanup and standardize output names #72

Workflow file for this run

# Copyright 2022 leorize <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0
name: Check if dist is up-to-date
on: [push, pull_request]
jobs:
check:
name: Built JS is up-to-date with source
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: npm install
- run: npm run build
- name: Check for differences between commit and built file
run: |
if ! git diff --exit-code -- dist; then
echo '::error::There are differences between commit and code built. Make sure that `npm run build` is run before commiting. Check log for more details.'
exit 1
fi
shell: bash