standard-version-updater-yaml
Version:
A YAML updater for standard-version.
76 lines (54 loc) • 1.83 kB
Markdown
# standard-version-updater-yaml
[](https://github.com/coldfrontlabs/standard-version-updater-yaml/releases)
[](/LICENSE)
[](https://conventionalcommits.org)
A YAML updater for [standard-version](https://github.com/conventional-changelog/standard-version).
## Installation
```shell
# latest stable
npm install standard-version-updater-yaml
```
## Usage
In your `.versionrc.js` file:
```jsx
const standardVersionUpdaterYaml = require.resolve("standard-version-updater-yaml");
module.exports = {
...,
bumpFiles: [
{
filename: "file.yml",
updater: standardVersionUpdaterYaml
}
]
};
```
\- _or_ -
```jsx
module.exports = {
...,
bumpFiles: [
{
filename: "file.yml",
updater: require.resolve("standard-version-updater-yaml")
}
]
};
```
## YAML structure
This updater will only update a root `version` tag inside of a YAML file.
### Correct structure ✔
```yml
name: My package
version: 1.0.0
```
### Incorrect structure ❌
```yml
package:
name: My package
version: 1.0.0
```
## Versioning
This project uses Semantic Versioning 2.0.0 to keep track of releases.
For more detailed information about SemVer, please see the [official documentation](https://semver.org/).
## Contributing
If you're interested in contributing to the project, please read the [Contribution Guidelines](.github/CONTRIBUTING.md). Any and all contributions _must_ follow these guidelines or they will not be accepted.