cleanup and standardize output names #75
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |