![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
semantic-release-lerna
Advanced tools
semantic-release plugin to publish lerna monorepo packages to npm
semantic-release plugin to publish lerna managed npm packages to npm.
This is WORK-IN-PROGRESS so there will most likely be bugs and it as only really been tested under the narrow use-cases I myself need it for.
It is intended to be a drop-in replacement of the @semantic-release/npm
plugin.
The plugin works in the following way:
latch
option to configure this.As of now the following features from @semantic-release/npm
is not supported/implemented:
addChannel
.tarball
.Step | Description |
---|---|
generateNotes | If the plugin option generateNotes is true this plugin generate release notes with the commit scope set to a list of affected packages (unless otherwise specificed by the commit message). This option replaces @semantic-release/release-notes-generator , do not use both at the same time. |
prepare | Update the package.json version and create the npm package tarball. |
publish | Publish the npm package to the registry. |
If a package version is bumped all the packages depending (dependencies
, devDependencies
and peerDependencies
) on it will also have the range updated if the range has one of the following formats:
1.2.3
^1.2.3
^1.2
^1
$ npm install semantic-release-lerna -D
The plugin can be configured in the semantic-release configuration file:
{
"plugins": [
"@semantic-release/commit-analyzer",
["semantic-release-lerna", { "generateNotes": true }],
"@semantic-release/changelog",
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"lerna.json",
"package.json",
"package-lock.json",
"packages/*/package.json",
"packages/*/package-lock.json"
]
}
]
]
}
Option | Description | Default |
---|---|---|
generateNotes | Set to true to enable generating release notes. See generateNotes step for more details. | false |
npmVerifyAuth | Set to false to disable verifying NPM registry credentials. | true |
latch | Latches package versions together. If the version bump is at least the given version all packages will be bumped regardless if the package has been touched or not. "major", "minor", "patch", "prerelease", "none" | "minor" |
rootVersion | Allow to update version on root package.json . | true |
lerna ERR! EUNCOMMIT Working tree has uncommitted changes, please commit or remove the following changes before continuing:
Configure @semantic-release/git
to commit lerna.json
and package.json
from the package folders.
See example configuration above.
The conventional changelog packages have mismatching versions.
This plugin supports both conventional-changelog-writer
v7 and v8 as long as the preset has a matching version.
Assuming you use conventional-changelog-conventionalcommits
as preset you can verify this with:
npm ls conventional-changelog-writer conventional-changelog-commits
If the major version of the packages differs you need to explicitly install the correct versions:
npm install conventional-changelog-writer@8 conventional-changelog-commits@8
Substitute @8
with @7
if you need to stay on v7.
Usually you can get away with removing the packages from package.json
afterwards as long as the lockfile (e.g. package-lock.json
) still retains the requested versions of the packages.
If you do not have a configured preset conventional-changelog-angular
is used by default, same rule applies, the major version has to be the same.
Also note that semantic-release
v24 requires v8 of thte conventional changelog packages.
FAQs
semantic-release plugin to publish lerna monorepo packages to npm
The npm package semantic-release-lerna receives a total of 678 weekly downloads. As such, semantic-release-lerna popularity was classified as not popular.
We found that semantic-release-lerna demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.