0.0.1 • Published 1 year ago

@o6/sheep v0.0.1

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

🐑️ 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 :ok_hand: