💚 ci: fix auto script causing CI failure
This commit is contained in:
3
.github/workflows/ci.yaml
vendored
3
.github/workflows/ci.yaml
vendored
@ -25,6 +25,9 @@ jobs:
|
||||
- name: Linting test
|
||||
run: bun run lint
|
||||
|
||||
- name: Create dummy system account
|
||||
run: bun run dummy:systemaccount
|
||||
|
||||
- name: Generate prisma schema
|
||||
run: bunx prisma generate
|
||||
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
"prisma:dbml": "bunx prisma db pull && bunx prisma dbml --output ./prisma/dbml/schema.dbml",
|
||||
"prisma:reset": "bunx prisma db push --force-reset",
|
||||
"prisma:seed": "bun run ./prisma/seed/index.ts",
|
||||
"dummy:systemaccount": "bun run ./scripts/create-dummy-system-account.ts",
|
||||
"route:sync": "bun run ./scripts/sync-routes.ts",
|
||||
"env:publish": "bun run ./scripts/create-example-env.ts"
|
||||
},
|
||||
|
||||
10
scripts/create-dummy-system-account.ts
Normal file
10
scripts/create-dummy-system-account.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import { generateUUIDv7 } from "../src/helpers/databases/uuidv7";
|
||||
import { createFile } from "../src/helpers/files/createFile";
|
||||
|
||||
export const createDummySystemAccount = async () => {
|
||||
await createFile(`export const SystemAccountId = "${generateUUIDv7()}";`, {
|
||||
fileName: "system.ts",
|
||||
targetDir: "src/config/account",
|
||||
overwriteIfExists: true,
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user