Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into remove-connected-react-router
- Loading branch information
Showing
5 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import shell from 'shelljs'; | ||
|
||
interface Options {} | ||
|
||
export function createChangeLog(opts: Options = {}) { | ||
const changes1 = shell.exec(`git diff package.json`, { silent: true }); | ||
const changes2 = shell.exec(`git diff package-lock.json`, { silent: true }); | ||
if (changes1.stdout.length > 0 || changes2.stdout.length > 0) { | ||
console.error('Error: Unstaged files'); | ||
process.exit(1); | ||
} | ||
shell.exec(`npx standard-version --skip.commit --skip.tag`, { | ||
silent: false, | ||
}); | ||
|
||
// Revert the bumbped version | ||
shell.exec(`git checkout -- package-lock.json`, { silent: true }); | ||
shell.exec(`git checkout -- package.json`, { silent: true }); | ||
} | ||
|
||
createChangeLog(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters