Skip to content

Commit

Permalink
feat: execute firebase deploy command on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Dec 25, 2022
1 parent 5e60499 commit b035f6b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/firebase/src/executors/functions/deploy/executor.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { execSync } from 'child_process';
import { BuildExecutorSchema } from './schema';

export default async function runExecutor(options: BuildExecutorSchema) {
console.log('Executor ran for deploy', options);
console.log('Deploying Firebase Functions...');
// run firebase deploy command sync or async
const res = execSync('firebase deploy --only functions');
console.log(res.toString());
return {
success: true,
};
Expand Down

0 comments on commit b035f6b

Please sign in to comment.