Bump eslint from 8.56.0 to 9.6.0 in the npm-packages group across 1 directory #123
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
name: Check built files | |
on: | |
push: | |
branches: | |
- 'trunk' | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
workflow_dispatch: | |
jobs: | |
# Ensures versioned `dist` folder contains all source code changes. | |
# | |
# Performs the following steps: | |
# - Checks out the repository. | |
# - Sets up Node.js. | |
# - Installs npm dependencies. | |
# - Runs the build script. | |
# - Compares the build script results with versioned files. | |
check-dist: | |
name: Confirm all changes are in built files | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Set up Node.js | |
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 | |
with: | |
node-version-file: '.nvmrc' | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Run build scripts | |
run: npm run prepare | |
- name: Compare the expected and actual dist/ directories | |
run: | | |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then | |
echo "Detected uncommitted changes after build. See status below:" | |
git diff | |
exit 1 | |
fi |