0.1.2 • Published 3 years ago

@devsaur/release-it-branch-environments v0.1.2

Weekly downloads
198
License
MIT
Repository
gitlab
Last release
3 years ago

Release-It Branch Environments

This release-it plugin ...

npm install --save-dev @devsaur/release-it-branch-environments

In release-it config:

{
  "plugins": {
    "@devsaur/release-it-branch-environments": {
      "environments": [
        {
          "name": "develop",
          "short": "dev",
          "branches": [
            "develop"
          ]
        },
        {
          "name": "testing",
          "short": "test",
          "branches": [
            "testing"
          ]
        },
        {
          "name": "production",
          "short": "prod",
          "branches": [
            "production"
          ]
        }
      ],
      "cp": [
        {
          "from": "some-config-file-{{env_short}}",
          "to": "some-config-file"
        }
      ]
    }
  }
}

Placeholders

You can use the following placeholders:

  • {{env_name}} - the long name of an environment.
  • {{env_short}} - the short name of an environment. Defaults to the full name.
  • {{version}} - the version to be released.

Coming soon

The plugin additionally exports the environment-variables RELEASE_IT_ENV_SHORT and RELEASE_IT_ENV_NAME after the release is executed, so that scripts executed later can use them.

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago