Skip to content

Instantly share code, notes, and snippets.

@dansalias
Last active July 3, 2022 15:00
Show Gist options
  • Save dansalias/563b7c4c4e233af5c9438e0428933148 to your computer and use it in GitHub Desktop.
Save dansalias/563b7c4c4e233af5c9438e0428933148 to your computer and use it in GitHub Desktop.
Squash npm version bumps into previous commit
{
"scripts": {
"postversion": "git reset --soft HEAD~1 && git commit --amend -C HEAD",
...
}
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment