Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions lib-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,21 @@ console.log(chalk.cyan(outdent`
`));

promiseSeries([
() => execaPipeError('git diff --exit-code --quiet HEAD')
.then(({ stdout }) => stdout)
.catch((reason) => {
console.log(chalk.red(outdent`

Attention: Your working tree is not clean. I will abort the action

Please check your working tree:

${chalk.bold('git status')}

`));

throw reason;
}),
() => execaPipeError('npm whoami')
.then(({ stdout }) => stdout)
.catch((reason) => {
Expand Down