chore(deps): bump actions/setup-node from 3.6.0 to 4.0.2 #84
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
name: Check dist | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
check-dist: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/[email protected] | |
- name: Set Node.js 16.x | |
uses: actions/[email protected] | |
with: | |
cache: 'pnpm' | |
node-version: 16.x | |
- name: Install dependencies | |
run: pnpm install | |
- name: Rebuild the dist/ directory | |
run: | | |
pnpm build | |
pnpm package | |
- 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 | |
id: diff |