1.0.15 • Published 27 days ago

@adobe/semantic-release-skms-cmr v1.0.15

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
27 days ago

Semantic Release SKMS CMR

Semantic release plugin that integrates with SKMS Change Management System

StepDescription
verifyConditionsVerify that the SKMS_USERNAME and SKMS_PASSKEY environment variable has been set and that it is able to access the SKMS API
prepareCreate a pre approved SKMS CMR
successComplete the CMR
failCancel the CMR

Status

codecov CircleCI GitHub license GitHub issues LGTM Code Quality Grade: JavaScript semantic-release

Installation

$ npm install @adobe/semantic-release-skms-cmr

Usage

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

{
  plugins: [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    ['@semantic-release/exec', {
      prepareCmd: 'npm run deploy && npm run test-postdeploy',
      publishCmd: 'npm run deploy-routes',
      successCmd: 'echo "${nextRelease.version}" > released.txt',
    }],
    // note that the skms plugins needs to be defined after the exec plugin, so that the CMR can
    // is not opened if the post-deploy steps fail during the prepare step.
    ["@adobe/semantic-release-skms-cmr", {
      modelId: 1234,
      summary: "CircleCI release of ${pkg.name} ${nextRelease.name}"
    }],
  ]
}

Configuration

Environment Variables

VariableDescription
SKMS_USERNAMEThe username for authenticating with SKMS
SKMS_PASSKEYThe passkey for authenticating with SKMS
SKMS_MODEL_IDThe ID of the pre approved model

Options

ParameterTypeRequiredDescriptiondefault
modelIdstringyesID of the pre approved model to use
apihoststringnoOptional hostname of the SKMS api to useapi.skms.adobe.com
summarystringnoSummary of the CMRAutomated CI/CD release of ${pkg.name} ${nextRelease.name}
notesstringnoAdditional notes of the CMR${env.CIRCLE_BUILD_URL}
explanationstringnoExplanation added to a completed CMRreleased ${pkg.name}@${nextRelease.version}
cancelationNotesstringnoExplanation added to a canceled CMRsemantic released failed.
maintStartnumbernonum seconds before the maintenance window starts15
maintDurationnumbernonum seconds of the maintenance window600

Development

Build

$ npm install

Test

$ npm test

Lint

$ npm run lint
1.0.15

27 days ago

1.0.14

6 months ago

1.0.13

6 months ago

1.0.11

10 months ago

1.0.12

8 months ago

1.0.0

1 year ago

0.0.1

1 year ago