Skip to content

chore: bump nodejs to version 20 #87

chore: bump nodejs to version 20

chore: bump nodejs to version 20 #87

Workflow file for this run

name: Check dist
on:
push:
branches:
- master
pull_request:
jobs:
check-dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.4
- name: Set Node.js
uses: actions/setup-node@v3.6.0
with:
cache: 'pnpm'
node-version: 20.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