1.0.0 • Published 2 years ago

semantic-release-mixpanel v1.0.0

Weekly downloads
-
License
LICENSE
Repository
github
Last release
2 years ago

📦🚀📊 Semantic Release Mixpanel

semantic-release

Create Mixpanel annotations from new releases.

StepDescription
verifyConditionsVerify the required environment variables
successCreate an annotation in Mixpanel with information about the most recent release
fail(nothing)

Installation

npm install --dev semantic-release-mixpanel

Usage

Add the following to your release.config.js

  "plugins": [
    // ...
   ["semantic-release-mixpanel", {
       "semverFilter": ["major", "minor"]
   }]
  ],

Environment variables

Your Mixpanel project ID along with Service Account credentials are required. To learn how to create a service account, see Mixpanel Docs.

Environment variableDescription
MIXPANEL_PROJECT_IDProject ID available in the URL
MIXPANEL_SERVICE_ACCOUNT_USERNAMEUsername
MIXPANEL_SERVICE_ACCOUNT_PASSWORDPassword

Options

PropertyTypeDefaultExampleDescription
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
fullReleaseNotesBooleanfalse"fullReleaseNotes": trueProvides the full release notes in the annotation instead of a link to the release notes