Nefariously Programmed Mecha
    Wondering what’s next for npm?Check out our public roadmap! »

    @devsaur/release-it-branch-environments

    0.1.2 • Public • Published

    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.

    Install

    npm i @devsaur/release-it-branch-environments

    DownloadsWeekly Downloads

    1

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    17.9 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar