Skip to content

Commit

Permalink
ci: Add Tensorflow rebuild and update
Browse files Browse the repository at this point in the history
RegisterCmdCli.js
  • Loading branch information
dev-737 committed Nov 6, 2023
1 parent 80df762 commit fc5ca76
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,16 @@ jobs:
run: |
cp ~/important/interchat-env .env
npm run build --if-present
cd api && npm run build --if-present
- name: Rebuild Tensorflow
run: |
cd api && npm rebuild @tensorflow/tfjs-node --build-from-source
npm run build --if-present
- name: Deploy Commands
run: npm run register:commands -- -b
run: |
npm run register:commands -- --public
npm run register:commands -- --private
- name: Prune Dev-dependencies
run: npm prune --omit=dev
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "tsc --build && npm run sentry:sourcemaps",
"build:dev": "tsc --build",
"dev": "tsc-watch --outDir ./build --onSuccess \"node --trace-warnings .\"",
"register:commands": "node build/utils/RegisterCommands.js",
"register:commands": "node build/utils/RegisterCmdCli.js",
"release": "standard-version",
"lint": "eslint --cache --fix .",
"prepare": "husky install",
Expand Down
4 changes: 2 additions & 2 deletions src/utils/RegisterCommands.ts → src/utils/RegisterCmdCli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ process.argv.forEach((arg) => {
if (arg === '--public') {
registerAllCommands().then(() => process.exit(0));
}
else if (arg === '--staff') {
else if (arg === '--private') {
registerAllCommands(true).then(() => process.exit(0));
}
else if (arg === '--help') {
Logger.info('Usage: node utils/DeployCmdCli.js [--public|--staff|--help]');
Logger.info('Usage: node utils/RegisterCmdCli.js [--public|--private|--help]');
process.exit(0);
}
else {
Expand Down

0 comments on commit fc5ca76

Please sign in to comment.