Skip to content

Commit

Permalink
add production code generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielzxccc committed Oct 12, 2023
1 parent 1099703 commit df2513e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: yarn install
- run: yarn codegen
- run: yarn codegen:production
- run: yarn build
- run: pm2 restart API
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"dev": "nodemon src/index.ts",
"build": "tsc",
"codegen": "kysely-codegen --dialect postgres",
"codegen:production": "kysely-codegen --dialect postgres --url echo $DATABASE_URL",
"migrate": "ts-node src/scripts/migrate.ts"
},
"keywords": [],
Expand Down

0 comments on commit df2513e

Please sign in to comment.