The prepare script caused npm ci to fail during Gitea Actions because it ran 'npm run build' before node_modules/.bin was properly linked, resulting in 'tsc: not found' errors.