1.0.1 • Published 5 years ago

semantic-release-ionic-config v1.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

semantic-release-ionic-config

Semantic release plugin for automatically update config.xml files.

Install

$ npm install -D semantic-release-ionic-config

Usage

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

By default, it updates config.xml to the latest version

YAML:

prepare:
  - @semantic-release-ionic-config"

JSON:

{
  "prepare": ["semantic-release-ionic-config"]
}

Configuration

Options

OptionsDesctiption
filenamesname of the config.xml files.

The example is to update multiple config.xml files, and commit them afterward.

YAML:

prepare:
  - - 'semantic-release-ionic-config'
    - filenames: ['config.xml', 'config.dev.xml', 'config.prod.xml']

  - - '@semantic-release/git'
    - assets:
        [
          'package.json',
          'package-lock.json',
          'config.xml',
          'config.dev.xml',
          'config.prod.xml',
          'CHANGELOG.md',
        ]
    - message: 'chore(release): v${nextRelease.version}'

JSON:

{
  "prepare": [
    [
      "semantic-release-ado",
      {
        "filenames": ["config.xml", "config.dev.xml", "config.prod.xml"]
      }
    ],
    {
      "path": "@semantic-release/git",
      "assets": [
        "package.json",
        "package-lock.json",
        "config.xml",
        "config.dev.xml",
        "config.prod.xml",
        "CHANGELOG.md"
      ],
      "message": "chore(release): v${nextRelease.version}"
    }
  ]
}

Commit the modified config.xml files