1.0.0 • Published 3 years ago

@iwavesmedia/semantic-release-composer v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@ambimax/semantic-release-composer

semantic-release plugin to update a composer package for php.

StepDescription
verifyConditionsVerify the presence of a composer.json file.
prepareUpdate the composer.json version

Install

$ npm install @ambimax/semantic-release-composer -D

Usage

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

{
  "tagFormat": "${version}",
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "@ambimax/semantic-release-composer"
  ]
}

Configuration

Options

OptionsDescriptionDefault
skipOnMissingComposerJsonSilently ignore missing composer.json filefalse

Examples

{
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "@semantic-release/github",
    [
      "@semantic-release/changelog",
      {
        "changelogFile": "CHANGELOG.md"
      }
    ],
    [
      "@ambimax/semantic-release-composer",
      {
        "skipOnMissingComposerJson": true
      }
    ],
    [
      "@semantic-release/git",
      {
        "assets": ["composer.json", "CHANGELOG.md"],
        "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
      }
    ]
  ]
}

Author