
Research
/Security News
Coruna Respawned: Compromised art-template npm Package Leads to iOS Browser Exploit Kit
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.
semantic-release-openapi
Advanced tools
A Semantic Release plugin to update versions in OpenAPI / Swagger specification files
A Semantic Release plugin to update versions in OpenAPI / Swagger specification files.
| Step | Description |
|---|---|
verifyConditions | Verify existence of the apiSpecFiles config option, that it resolves to at least one valid .json, .yml, or .yaml file, and that it does not resolve to any other file types. |
prepare | Update the info.version field in all matching apiSpecFiles. |
This module is distributed via npm and should be installed as one of your project's devDependencies:
npm install --save-dev semantic-release-openapi
Configure the plugin wherever you have your semantic-release configuration.
This plugin has one configuration option which must be supplied.
| Option | Description |
|---|---|
apiSpecFiles | An array of OpenAPI / Swagger specification file paths. Glob patterns (e.g. '*.yaml') are supported.All matching files must have a .json, .yaml, or .yml extension. |
[!TIP]
Semantic Release will not commit changes to your OpenAPI spec files unless you add the same files in
assetsfor the @semantic-release/git plugin. See the examples below.
The following examples assume you've put your semantic-release configuration in your package.json file.
{
"release": {
"plugins": [
[
"semantic-release-openapi",
{
"apiSpecFiles": ["openapi.yaml", "src/swagger-*.json"]
}
],
[
"@semantic-release/git",
{
"assets": ["package.json", "openapi.yaml", "src/swagger-*.json"]
}
]
]
}
}
{
"release": {
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/github",
{
"assets": [
{
"path": "src/openapi.yml",
"label": "Open API Spec"
}
]
}
],
"@semantic-release/npm",
[
"semantic-release-openapi",
{
"apiSpecFiles": ["src/openapi.yml"]
}
],
[
"@semantic-release/git",
{
"assets": ["package.json", "src/openapi.yml"]
}
]
]
}
}
FAQs
A Semantic Release plugin to update versions in OpenAPI / Swagger specification files
The npm package semantic-release-openapi receives a total of 829 weekly downloads. As such, semantic-release-openapi popularity was classified as not popular.
We found that semantic-release-openapi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.

Company News
As AI accelerates how code is written and shipped, Socket is scaling to protect the software supply chain from the growing wave of attacks targeting open source dependencies.

Company News
Socket is scaling to defend open source against supply chain attacks as AI accelerates software development.