Skip to content

Commit

Permalink
release-it: read version from VERSION file (#1169)
Browse files Browse the repository at this point in the history
  • Loading branch information
myakove authored Mar 29, 2023
1 parent 7533de5 commit ac43f1d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,5 @@ local-cluster/_hco/

# nmp
node_modules/
package.json
package-lock.json
13 changes: 3 additions & 10 deletions .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,9 @@
"web": false
},
"plugins": {
"@j-ulrich/release-it-regex-bumper": {
"out": [
{
"files": [
"VERSION"
],
"search": "\\d+\\.\\d+\\.\\d+",
"replace": "{{version}}"
}
]
"@release-it/bumper": {
"in": "VERSION",
"out": "VERSION"
}
}
}
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ export GITHUB_TOKEN=<your_github_token>
* [release-it](https://github.com/release-it/release-it)
```bash
sudo npm install --global release-it
npm install --save-dev @j-ulrich/release-it-regex-bumper
rm -f package.json package-lock.json
npm install --save-dev @release-it/bumper
```
### usage:
* Create a release, run from the relevant branch.
Expand Down

0 comments on commit ac43f1d

Please sign in to comment.