Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

track published 5.x versions #3

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
17 changes: 16 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
pull_request:


jobs:
Expand All @@ -27,11 +28,25 @@ jobs:
- name: Start postgres
run: nix develop --command pg_ctl start

- name: uname
run: echo "$(uname -m)"

- name: echo some stuff in non-nix context
run: ls -al "/usr/lib/$(uname -m)-linux-gnu"

- name: echo some stuff in nix context
run: nix develop --command ls -al "/usr/lib/$(uname -m)-linux-gnu"

- name: prisma generate
run: nix develop --command npx prisma generate

- name: echo some stuff in node_modules
run: |
ls -al "node_modules/@prisma/engines"
ls -al "node_modules/prisma/"
ls -al "node_modules/.prisma/client"

- name: 🛠 Run migrations
run: DEBUG=prisma* nix develop --command npx prisma migrate reset --force
run: |
ls -al "$(pwd)/node_modules/.prisma/client"
PRISMA_QUERY_ENGINE_LIBRARY="$(pwd)/node_modules/.prisma/client/libquery_engine-debian-openssl-3.0.x.so.node" DEBUG=prisma* nix develop --command npx prisma migrate reset --force --skip-generate
227 changes: 16 additions & 211 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@
"license": "ISC",
"devDependencies": {
"@types/node": "^20.5.7",
"prisma": "^5.2.0",
"prisma-json-types-generator": "^3.0.0-beta.4",
"prisma": "5.1.0",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.2.2"
},
"dependencies": {
"@prisma/client": "^5.2.0"
"@prisma/client": "5.1.0"
},
"prisma": {
"seed": "ts-node --require tsconfig-paths/register prisma/seed.ts"
Expand Down
Binary file added prisma/dev.db
Binary file not shown.
Binary file added prisma/dev.db-journal
Binary file not shown.
4 changes: 0 additions & 4 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ generator client {
previewFeatures = ["postgresqlExtensions"]
}

generator json {
provider = "prisma-json-types-generator"
}

datasource db {
provider = "postgres"
url = env("DATABASE_URL")
Expand Down