semantic-release-version-bump
v1.4.1semantic-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.
npm i semantic-release-version-bump
Metadata
- GPL-2.0-or-later
- Whatever
- Automattic
- released 3/25/2020