1.2.1 • Published 1 year ago

semantic-release-bitrise v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

semantic-release-bitrise

semantic-release plugin to start builds on bitrise

npm

StepDescription
successStart a new build on bitrise

Install

Add the plugin to your npm-project:

$ npm install --save-dev semantic-release-bitrise

Usage

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

{
    "plugins": [
        "@semantic-release/commit-analyzer",
        "@semantic-release/release-notes-generator",
        [
            "semantic-release-bitrise",
            {
                "appSlug": "1234abcd"
            }
        ]
    ]
}

Configuration

Environment variables

The BITRISE_ACCESS_TOKEN variable needs to be defined in the environment where you will run semantic release. Copy and past the token to authenticate with bitrise value to this variable.

Options

OptionDescriptionRequiredDefault
appSlugThe AppSlug from bitriseyes-
workflowIdSets the id of the workflow to run on bitrise. If none given the default trigger map will be usedno-
workflowIdMapSets the id of the workflow to run on bitrise based on a branch. If none given the default trigger map will be usedno-

Examples

Setting a specific workflow

{
    "plugins": [
        "@semantic-release/commit-analyzer",
        "@semantic-release/release-notes-generator",
        [
            "semantic-release-bitrise",
            {
                "appSlug": "1234abcd",
                "workflowId": "ios-production"
            }
        ]
    ]
}

Setting a specific workflow for a specific branch name

{
    "plugins": [
        "@semantic-release/commit-analyzer",
        "@semantic-release/release-notes-generator",
        [
            "semantic-release-bitrise",
            {
                "appSlug": "1234abcd",
                "workflowIdMap": {
                    "main": "ios-production",
                    "develop": "ios-stage"
                }
            }
        ]
    ]
}