1.0.5 • Published 12 months ago

@cohandv/semantic-release-update-versions v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@cohandv/semantic-release-update-versions

semantic-release plugin to create major, release, fix tags into a file for other CI to pick it up

Commitizen friendly Conventional Changelog semantic-release: angular Formatted with Biome

StepDescription
preparePrepares and writes the file with the atgs
verifyConditionsVerifies that suffix are provided when multiple configurations are provided

Install

# For npm users
$ npm install --save-dev @cohandv/semantic-release-update-versions

# For yarn users
$ yarn add --dev @cohandv/semantic-release-update-versions

Usage

The plugin can be configured in the semantic-release configuration file:

Produce versions

{
    "plugins": [
        "@semantic-release/commit-analyzer",
        "@semantic-release/release-notes-generator",
        "@semantic-release/npm",
        [
            "@cohandv/semantic-release-update-versions"
        ]
    ]
}

Options

OptionsDescriptionDefaultRequired
filePathThe directory where the file will be created..
fileNameThe file name.semantic-release-versions.json
tagsArray of string which can be static values like latest or environment variables like $NODE_ENVnextRelease.version
bumpParentsFlag to bump related tags along with the specific release version (E.G: if set to true when publishing the 1.5.0 version it will also publish 1 and 1.5)false
suffixSuffix to add on the buildign image step 5. If multiple versions are provided this is mandatory

Example

Build and push single component

{
    "plugins": [
        "@semantic-release/commit-analyzer",
        "@semantic-release/release-notes-generator",
        "@semantic-release/npm",
        [
            "@cohandv/semantic-release-update-versions",
            {
              "config": [
                {
                  "tags": [
                    "latest",
                    "$NODE_ENV"
                  ],
                  "bumpParents": false,
                  "suffix": "sufix"
                }
              ]
            }
        ]
    ]
}

Build and push multiple components

{
    "plugins": [
        "@semantic-release/commit-analyzer",
        "@semantic-release/release-notes-generator",
        "@semantic-release/npm",
        [
            "@cohandv/semantic-release-update-versions",
            { 
                "config": [
                    {
                        "tags": ["latest", "$NODE_ENV", "component-1"],
                        "bumpParents": false,
                        "suffix": "component-1"
                    },
                    {
                        "tags": ["latest", "$NODE_ENV", "component-2"],
                        "bumpParents": false,
                        "suffix": "component-2"
                    }
                ]
            }
        ]
    ]
}

Run locally

npm install -g tsx
npx tsx src/localRun.ts
1.0.5

12 months ago

1.0.4

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago

1.0.3

12 months ago