@ryaninvents/commit-analyzer-subtree
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@ryaninvents/commit-analyzer-subtree

Release just one package from a monorepo

Setup

npm install --save-dev @ryaninvents/commit-analyzer-subtree

Note: This package requires @semantic-release/commit-analyzer as a peerDependency, but @semantic-release/commit-analyzer is bundled with semantic-release so in most cases you shouldn't have to explicitly set it up.

Configuration

This package is configured by setting subtree to an array of globs. When semantic-release runs, it will only include commits that affected these files. All other options are passed through directly to @semantic-release/commit-analyzer.

Example semantic-release configuration file:

{
  "plugins": ["@semantic-release/release-notes-generator"],
  "analyzeCommits": [
    [
      "@ryaninvents/commit-analyzer-subtree",
      {
        "subtree": ["packages/project-1/**"],
        "preset": "angular",
        "releaseRules": [
          { "type": "docs", "scope": "README", "release": "patch" },
          { "type": "refactor", "release": "patch" },
          { "type": "style", "release": "patch" }
        ],
        "parserOpts": {
          "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
        }
      }
    ]
  ]
}

Readme

Keywords

none

Package Sidebar

Install

npm i @ryaninvents/commit-analyzer-subtree

Weekly Downloads

0

Version

1.0.0

License

none

Unpacked Size

10.3 kB

Total Files

7

Last publish

Collaborators

  • ryaninvents