1.0.1 • Published 4 years ago

semantic-release-wxwork v1.0.1

Weekly downloads
10
License
SEE LICENSE IN LI...
Repository
github
Last release
4 years ago

semantic-release-wxwork

npm CircleCI Known Vulnerabilities Renovate enabled code style: prettier semantic-release


Post wxwork(企业微信) notifications to a webhook on success or failure of a semantic-release job

StepDescription
verifyConditionsVerify the WXWORK_WEBHOOK_URL environment variable is set.
successSend a formatted message to the wxwork webhook provided with information about the most recent release
failSend a formatted message to the wxwork webhook if the release fails

Installation

yarn add --dev semantic-release-wxwork

Usage

Add the following to your release.config.js

  "plugins": [
    // ...
   ["semantic-release-wxwork", {
       // These are the available platforms that the package can be downloaded from
       "platforms": ["brew", "npm", "docker"]
   }]
  ],

Ensure you have a webhook url in your process.env under the name WXWORK_WEBHOOK_URL. The hook is expected to contain https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key= in the URL. Without this, your release will fail because the plugin won't know where to post to.

Options

PropertyTypeDefaultExampleDescription
platformsString[]undefined"platforms": ["brew", "npm"]Available platforms that the package can be downloaded from. Can be anything. Supported emoji
skipCommitStringundefined"skipCommit": "^fix\\(deps\\):"Skips notifying when regex matches at least one commit in the release
semverFilterString[]["major", "minor", "patch"]"semverFilter": ["major", "minor"]Skips releases that do not match one of the configured types
fullReleaseNotesBooleantrue"fullReleaseNotes": falseProvides the full release notes in wxwork instead of a link to the release notes
failureMessageBooleanfalse"failureMessage": trueSends message when the release failed