mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
Address code review feedback: fix workflow step ID, improve YAML regex, remove error suppression
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
1
.github/workflows/container-build.yml
vendored
1
.github/workflows/container-build.yml
vendored
@@ -69,6 +69,7 @@ jobs:
|
||||
type=raw,value=latest,enable={{is_default_branch}}
|
||||
|
||||
- name: Build and push Docker image
|
||||
id: build
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: ${{ matrix.context }}
|
||||
|
||||
@@ -133,8 +133,8 @@ function generateAllTypes(): string {
|
||||
const content = fs.readFileSync(file, 'utf-8')
|
||||
|
||||
// Check if file contains multiple documents (separated by ---)
|
||||
// Match document separator at start of line
|
||||
if (/\n---\s*\n/.test(content)) {
|
||||
// Match document separator: --- on its own line
|
||||
if (/(?:^|\n)---\s*(?:\n|$)/.test(content)) {
|
||||
// Parse all documents in the file
|
||||
const docs = yaml.parseAllDocuments(content)
|
||||
for (const doc of docs) {
|
||||
|
||||
@@ -12,7 +12,7 @@ RUN apk add --no-cache libc6-compat
|
||||
COPY package*.json ./
|
||||
COPY frontends/nextjs/package*.json ./frontends/nextjs/
|
||||
COPY dbal/development/package*.json ./dbal/development/
|
||||
COPY config/package*.json ./config/ 2>/dev/null || true
|
||||
COPY config/package*.json ./config/
|
||||
|
||||
# Install dependencies
|
||||
RUN npm ci
|
||||
@@ -64,7 +64,7 @@ COPY --from=builder /app/frontends/nextjs/public ./public
|
||||
COPY --from=builder /app/frontends/nextjs/.next/standalone ./
|
||||
COPY --from=builder /app/frontends/nextjs/.next/static ./.next/static
|
||||
|
||||
# Copy Prisma schema and generated client
|
||||
# Copy Prisma schema and generated client from workspace root
|
||||
COPY --from=builder /app/prisma ./prisma
|
||||
COPY --from=builder /app/node_modules/.prisma ./node_modules/.prisma
|
||||
COPY --from=builder /app/node_modules/@prisma ./node_modules/@prisma
|
||||
|
||||
Reference in New Issue
Block a user