fix: swap bun install for npm ci to fix integrity check failures
Known Bun bug (oven-sh/bun#1590, #26879, #18864) causes IntegrityCheckFailed during tarball extraction in Docker/CI. This is a 3+ year old issue with no fix in sight. Changes: - Generate package-lock.json via npm install --package-lock-only - Dockerfile: add nodejs npm to all stages, replace bun install with npm ci --legacy-peer-deps (peer dep conflict exists for eslint@8 with eslint-config-next@16) - Keep bun as runtime (bun test, bun run build, bun run start) - pr.yml: npm ci, npx prisma generate, npx playwright - release.yml: node scripts, npm test - build-ci-images.yml: add package-lock.json trigger path
This commit is contained in:
@@ -73,10 +73,10 @@ jobs:
|
||||
echo "Bumping version: $BUMP"
|
||||
|
||||
# Run the bump script
|
||||
bun run scripts/bump-version.js "$BUMP" --yes
|
||||
node scripts/bump-version.js "$BUMP" --yes
|
||||
|
||||
# Get new version
|
||||
NEW_VERSION=$(bun -e "console.log(require('./package.json').version)")
|
||||
NEW_VERSION=$(node -e "console.log(require('./package.json').version)")
|
||||
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
|
||||
echo "New version: $NEW_VERSION"
|
||||
|
||||
@@ -121,8 +121,9 @@ jobs:
|
||||
run: |
|
||||
docker run --rm \
|
||||
-e DATABASE_URL="postgresql://user:pass@localhost:5432/dummy" \
|
||||
-e NODE_ENV=test \
|
||||
${{ env.IMAGE_NAME }}-test:${{ steps.version.outputs.new_version }} \
|
||||
bun test 'src/__tests__/unit/**' 'src/__tests__/*.test.tsx' 'src/__tests__/auth-simple.test.ts'
|
||||
npm test
|
||||
|
||||
- name: Build production image
|
||||
if: steps.commit.outputs.committed == 'true'
|
||||
|
||||
Reference in New Issue
Block a user