0.0.6 • Published 1 year ago

@restfulhead/npm-auto-plugin-filter-by-path v0.0.6

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

NPM Auto plugin - Filter by path

A plugin for Intuit's Auto package that filters out commits that only have files outside the current directory. This can be helpful, for example in mono repositories, where you run auto on each sub package individually and would like to include only commits relevant to the sub-package.

Setup

To start using this plugin, add it to your .autorc config, for example:

{
  "plugins": [
    "npm",
    "@restfulhead/npm-auto-plugin-filter-by-path"
  ]
}

If you are using this for NPM workspaces/sub-packages, then add this file to each workspace. Then run auto from each workspace directory. Observe that commits with only files from directories outside the workspace directory are omitted.

There is some more effort involved to make this work with mono repositories. For example, the version in each package should only contain the version number (e.g. v1.0.0), but the tag and Github release must include the package name. We therefore can't just use the auto ship it command. Please take a look at the GitHub action release workflow in this repository for an example of how to publish individual packages based on what has changed.

0.0.6

1 year ago

0.0.5

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago