0.1.2 • Published 4 years ago

nx-semantic-release v0.1.2

Weekly downloads
138
License
MIT
Repository
github
Last release
4 years ago

nx-semantic-release

semantic-release plugin to prepare workspace apps using nx's affected: tool.

CircleCI

npm latest version

StepDescription
prepareRun nx affected over desired targets before publishing.

Install

$ npm install nx-semantic-release -D

Usage

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

{
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "nx-semantic-release"
  ]
}

Options

OptionDescriptionDefault
targetsAn array of targets to run nx affected: against.[]
projectsAn array of projects to whitelist.[] (if empty, will run against any affected projects)
customCommandsArray of additional commands to run on affected projects (command will be passed a $project variable)[]
extraArgsAdditional arguments to pass to the affected: commands[]

Detailed Usage

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

{
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    [
      "nx-semantic-release",
      {
        "targets": ["build"],
        "extraArgs": ["--prod", "--stats-json"],
        "customCommands": ["npm run genBundleReports -- --$project"]
      }
    ]
  ]
}