Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@amanda-mitchell/semantic-release-npm-multiple
Advanced tools
A semantic release plugin to publish an NPM package to multiple registries.
This is a thin wrapper around the @semantic-release/npm plugin for Semantic Release that allows it to be called multiple times, which can be useful if you need to publish to multiple NPM registries simultaneously.
yarn add --dev @amanda-mitchell/semantic-release-npm-multiple
The plugin can be configured in the semantic-release configuration file:
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
{
"first": {
"npmPublish": true
},
"second": {
"npmPublish": true
}
}
]
]
}
Each of the top-level keys refers to a specific registry that should be used and may be any value that is meaningful to you.
The object associated with that key is a set of options that should be passed to the @semantic-release/npm
plugin when calling it.
@semantic-release/npm
also looks at a number of environment variables for its configuration:
NPM_TOKEN
NPM_USERNAME
NPM_PASSWORD
NPM_EMAIL
NPM_CONFIG_REGISTRY
For any of these variables, if you define a {TOP_LEVEL_KEY}_{VARIABLE}
environment variable, it will be used instead.
For example, if you wanted to publish a package to both a GitHub private registry and the public NPM registry, you would first create a configuration file like this:
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
{
"github": {},
"public": {}
}
]
]
}
And then, when running semantic-release
, set these environment variables:
GITHUB_NPM_CONFIG_REGISTRY=https://npm.pkg.github.com/
GITHUB_NPM_TOKEN=XXXXX
PUBLIC_NPM_CONFIG_REGISTRY=https://registry.npmjs.org
PUBLIC_NPM_TOKEN=XXXXX
FAQs
A semantic release plugin to publish an NPM package to multiple registries.
The npm package @amanda-mitchell/semantic-release-npm-multiple receives a total of 1,327 weekly downloads. As such, @amanda-mitchell/semantic-release-npm-multiple popularity was classified as popular.
We found that @amanda-mitchell/semantic-release-npm-multiple 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.