Bump the npm-development group across 1 directory with 9 updates #21
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
# Do not modify! | |
# This file was generated from a template using https://github.com/StefMa/pkl-gha | |
name: Check Transpiled JavaScript | |
'on': | |
pull_request: {} | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
check-dist: | |
name: Check Dist | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: npm | |
- name: Install Dependencies | |
run: npm ci | |
- name: Install pkl | |
uses: pkl-community/setup-pkl@v0 | |
with: | |
pkl-version: 0.26.3 | |
- name: Build dist/ Directory | |
run: npm run bundle | |
- name: Compare Directories | |
id: diff | |
run: |- | |
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then | |
echo "Detected uncommitted changes after build. See status below:" | |
git diff --ignore-space-at-eol --text dist/ | |
exit 1 | |
fi | |
- name: Upload Artifact | |
if: ${{ failure() && steps.diff.outcome == 'failure' }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: dist |