24 lines
756 B
TypeScript
24 lines
756 B
TypeScript
|
|
import { execSync } from 'child_process';
|
||
|
|
|
||
|
|
async function pushUpdates() {
|
||
|
|
try {
|
||
|
|
console.log('\nRemovendo upsell da pagina de sucesso...');
|
||
|
|
execSync('git add src/pages/SuccessPage.tsx', { stdio: 'inherit' });
|
||
|
|
|
||
|
|
try {
|
||
|
|
execSync('git commit -m "refactor: remove upsell de convite animado da pagina de sucesso"', { stdio: 'inherit' });
|
||
|
|
} catch (e) {
|
||
|
|
console.log('Nada para commitar.');
|
||
|
|
}
|
||
|
|
|
||
|
|
console.log('\nFazendo push do código...');
|
||
|
|
execSync('git push origin main', { stdio: 'inherit' });
|
||
|
|
|
||
|
|
console.log(`\n🎉 Push concluído com sucesso!`);
|
||
|
|
} catch (error: any) {
|
||
|
|
console.error('\n❌ Ocorreu um erro:', error.message);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
pushUpdates();
|