https://github.com/gr2m/semantic-release-plugin-update-version-in-files
Turns GitHub REST API endpoints into generic request options
https://github.com/gr2m/semantic-release-plugin-update-version-in-files
Last synced: 3 months ago
JSON representation
Turns GitHub REST API endpoints into generic request options
- Host: GitHub
- URL: https://github.com/gr2m/semantic-release-plugin-update-version-in-files
- Owner: gr2m
- License: isc
- Created: 2019-05-03T20:40:46.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-22T00:08:49.000Z (over 2 years ago)
- Last Synced: 2024-04-22T13:23:08.076Z (about 2 years ago)
- Language: JavaScript
- Size: 453 KB
- Stars: 14
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# semantic-release-plugin-update-version-in-files
> Replace version placeholders with calculated version in any files before publishing
[](https://www.npmjs.com/package/semantic-release-plugin-update-version-in-files)
[](https://travis-ci.com/gr2m/semantic-release-plugin-update-version-in-files)
Example
```json
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github",
"@semantic-release/npm",
["semantic-release-plugin-update-version-in-files", {
"files": [
"version.js"
],
"placeholder": "0.0.0-development"
}]
]
```
If `"files"` is not set, it defaults to `[ "version.js" ]`. Glob patterns are supported via [glob](https://www.npmjs.com/package/glob). If `placeholder` is not set, it defaults to `"0.0.0-development"`.
See also: [semantic-release plugins configuration](https://semantic-release.gitbook.io/semantic-release/usage/plugins#plugins-configuration).
## License
[ISC](LICENSE)