Detalhes do pacote

semantic-release-fail-on-major-bump

evelynhathaway2.3kMIT1.0.2

Semantic release plugin that prevents publishing major version bumps

semantic-release, plugin, ci

readme (leia-me)

Icon # Semantic Release Fail on Major Bump Semantic release plugin that prevents publishing major version bumps npm version check status license: MIT

Description

If you need your pipelines to fail if a major or breaking change release will be created with semantic-release, drop this plugin into your config.

Installation

npm install --save-dev semantic-release-fail-on-major-bump

Usage

In your semantic-release configuration file, add semantic-release-fail-on-major-bump.

release.config.mjs

export default {
    plugins: [
        // Add this line
        "semantic-release-fail-on-major-bump",
        // Example semantic-release commit-analyzer config below...
        [
            "@semantic-release/commit-analyzer",
            {
                "preset": "angular",
                "releaseRules": [
                    {"type": "docs", "scope": "README", "release": "patch"},
                    {"type": "refactor", "release": "patch"},
                    {"type": "style", "release": "patch"},
                ],
                "parserOpts": {
                    "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"],
                },
            },
        ],
    ],
};

Development

Testing

Make a either a Breaking: or non-breaking typed commit and then see if the error was thrown if expected while running a dummy dry-run release.

npm run test-release

License

Copyright Evelyn Hathaway, MIT License

changelog (log de mudanças)

Changelog

v1.0.2

v1.0.1...v1.0.2 - 2025-02-17

📄 Documentation

  • Use valid ESM release config as example config, update link to config file documentation 7f7213c

v1.0.1

v1.0.0...v1.0.1 - 2025-02-17

📄 Documentation

  • Clarify which line to add to the semantic-release config 1a0b238

🧹 Internal

  • Update CI config, project meta, development test instructions 6785289

v1.0.0

2021-05-30

✨ Feature

  • Initial plugin to prevent major releases b9f06d3

🧹 Internal