Skip to content

Instantly share code, notes, and snippets.

@RobertFischer
Created November 9, 2020 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobertFischer/f3981f9a7b413e973788cf8da6ab8de8 to your computer and use it in GitHub Desktop.
Save RobertFischer/f3981f9a7b413e973788cf8da6ab8de8 to your computer and use it in GitHub Desktop.
Release Rules for a Package in a Monorepo
"use strict";
const _ = require("lodash");
const defaultRules = require("@semantic-release/commit-analyzer/lib/default-release-rules");
const scope = require(`${__dirname}/package.json`).name; // You may want to remove whatever's before a "/" in the name.
module.exports = _.map(
(defaultRules),
(defaultRule) => {
return {
...defaultRule,
scope
};
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment