Skip to content
This repository was archived by the owner on Apr 15, 2022. It is now read-only.

Latest commit

 

History

History
89 lines (66 loc) · 1.85 KB

File metadata and controls

89 lines (66 loc) · 1.85 KB

Configuration

All configurations are saved in the versio.json file.

You want to introduce another prerelease step? No problem, the versio file contains the workflow, that means the workflow is also versioned.

Versio File

On root level the versio file contains the following keys:

Strategies

Strategies allow you to update the version in other places, e.g. in a package.json file.

The following strategies are available:

Release Workflow

The release workflow helps to ensure compliance with the release workflow. All the places and transitions will be set in uppercase.

Places

Currently the following places are available:

  • ALPHA
  • BETA
  • RC
  • RTM
Example
{
    "places": [
        "BETA"
    ]
}

Transitions

Always ensure that you start with the transition MASTER and tht you can end from all places to RELEASE

The simplest workflow you can have is to release directly from master without a prerelease. This would look like this:

{
    "transitions": {
        "MASTER": [
            "RELEASE"
        ]
    }
}

I you now want to use a beta phase and sometimes an alpha pase you can configure it like this:

{
    "transitions": {
        "MASTER": [
            "ALPHA",
            "BETA"
        ],
        "ALPHA": [
            "ALPHA", // Needed if you want to create more than one alpha
            "BETA"
        ],
        "BETA": [
            "BETA", // Needed if you want to create more than one beta
            "RELEASE"
        ]
    }
}