Skip to content

Commit

Permalink
fix: add migration to build script and workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
akevinge committed Jul 22, 2023
1 parent 8c40c1c commit 7e23edb
Show file tree
Hide file tree
Showing 4 changed files with 183 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
- name: Prisma generate and push
run: |
npm run prisma:generate &&
npx prisma db push
npm run prisma:migrate:deploy
- name: Run Cypress e2e tests
run: |
Expand Down
180 changes: 180 additions & 0 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"scripts": {
"dev": "next dev",
"prisma:generate": "prisma generate --schema prisma/platform.prisma && prisma generate --schema prisma/schema.prisma",
"prisma:push:main": "prisma db push --schema prisma/schema.prisma",
"build": "npm run prisma:generate && npm run prisma:push:main && prisma db seed && next build",
"prisma:migrate:deploy": "prisma migrate deploy --schema prisma/schema.prisma",
"build": "npm run prisma:generate && next build && npm run prisma:migrate:deploy && prisma db seed",
"start": "next start",
"lint": "eslint --fix .",
"format": "prettier --write .",
Expand Down

0 comments on commit 7e23edb

Please sign in to comment.