Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@aensley/semantic-release-openapi

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aensley/semantic-release-openapi

A Semantic Release plugin to update versions in OpenAPI / Swagger specification files

latest
Source
npmnpm
Version
1.4.1
Version published
Maintainers
1
Created
Source

semantic-release-openapi

npm npm types license JavaScript Style Guide code style: prettier

ci Maintainability Test Coverage npm downloads

A Semantic Release plugin to update versions in OpenAPI / Swagger specification files.

Installation

This module is distributed via npm and should be installed as one of your project's devDependencies:

npm install --save-dev @aensley/semantic-release-openapi

Usage

Plugin Config

This plugin has one configuration option which must be supplied.

  • 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.

Committing Changes

IMPORTANT: Semantic Release will not commit changes to your OpenAPI spec files unless you add the same files in assets for the @semantic-release/git plugin! See the example below.

Example

{
  "release": {
    "plugins": [
      [
        "@aensley/semantic-release-openapi",
        {
          "apiSpecFiles": ["openapi.yaml", "src/swagger-*.json"]
        }
      ],
      [
        "@semantic-release/git",
        {
          "assets": ["package.json", "openapi.yaml", "src/swagger-*.json"]
        }
      ]
    ]
  }
}

Keywords

semantic-release

FAQs

Package last updated on 04 Jul 2025

Did you know?

Socket

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.

Install

Related posts