Skip to content

Akryum/sheep

Repository files navigation

🐑️ sheep

Opinionated CLI command to update CHANGELOG.md and release packages.

pnpm add -WD @akryum/sheep

Assumed:

  • Git repository
  • Monorepo
  • Uses pnpm
  • Tags with vX.Y.Z format
  • All tags are fetched locally
  • CHANGELOG.md exists (init it with pnpm exec conventional-changelog -p angular -o CHANGELOG.md -r 0)

What it does:

  • Select new version
  • Update nested packages versions and workspace dependencies
  • Update the root package.json version
  • Update the CHANGELOG.md file with the latest changes
  • Publish the packages to npm
  • Push the changes with vX.Y.Z commit message
  • Create and push a vX.Y.Z git tag

Usage:

{
  "scripts": {
    "release": "pnpm run link && pnpm run build && pnpm run test && sheep release -b main"
  }
}

Recommended compagnon GitHub Action: Akryum/release-tag 👌

About

🐑 Opinionated CLI command to release pnpm monorepos

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published