Bump github/codeql-action from 2 to 3 (#8) #324
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 that module was built | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
check-dist: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: npm ci | |
- name: Build the dist/ directory | |
run: npm run build | |
- name: Check for diff | |
run: | | |
if git diff --no-patch --exit-code dist; then | |
echo "Detected uncommitted changes after building. Please run 'npm run build' and commit the changes." | |
exit 1 | |
fi |