Skip to content

Automattic/semantic-release-version-bump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

semantic-release-version-bump

A semantic-release plugin to bump a version number in files where version is stored as a comment, e.g. in a WordPress PHP plugin file:

<?php
/**
 * Name:      A plugin
 * Version:   1.2.0
 */

Configuration

option required type function
files string | [string] glob (or array of globs) to match the files in which version should be bumped
callback 𐄂 string command to be called after the version is bumped in file/s

Example

"release": {
  "prepare": [
    [
      "semantic-release-version-bump",
      {
        "files": "my-plugin.php",
        "callback": "zip -r my-plugin.zip ."
      }
    ]
  ]
}

Limitations

It currently handles only a Version: string, used in WordPress plugin and theme files.

About

semantic-release version bumping in arbitrary files

Resources

License

Stars

Watchers

Forks

Packages

No packages published