Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
fix(build): possibly fix version number not updated in alfred workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
moranje committed Feb 8, 2020
1 parent e51cfda commit ac02c22
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tools/build-workflow.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
import { exec } from 'shelljs';
import { zip } from 'zip-a-folder';
import chalk = require('chalk');

exec('npm run bump-version', { silent: true });
let err = exec('npm run bump-version', { silent: true }).stderr;

if (err) {
console.error(`Could not bump version number:\n\n${chalk.red(err)}`);
process.exit(1);
}

zip(
`${process.cwd()}/dist/workflow`,
`${process.cwd()}/dist/Alfred Workflow Todoist.alfredworkflow`
)
.then(() => {
console.log('all done!');
console.log(
`Done: created ${chalk.green(`Alfred Workflow Todoist.alfredworkflow`)}`
);
})
.catch((err: Error) => {
console.error(err.stack);
Expand Down

0 comments on commit ac02c22

Please sign in to comment.