build: automate release step fully (#5414)

* build: automate release step fully

* exit process when error

* Add npm scripts for release and prerelease

* update docs with release setps
This commit is contained in:
Aakansha Doshi 2022-07-06 15:20:52 +05:30 committed by GitHub
parent 76a5bb060e
commit 11a3380d83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 81 additions and 29 deletions

View file

@ -1341,3 +1341,23 @@ You can create a test release by posting the below comment in your pull request
```
Once the version is released `@excalibot` will post a comment with the release version.
#### Creating a production release
To release the next stable version follow the below steps
```
yarn prerelease version
```
You need to pass the `version` for which you want to create the release. This will make the changes needed before making the release like updating `package.json`, `changelog` and more.
The next step is to run the `release` script
```
yarn release
```
This will publish the package.
Right now there are two steps to create a production release but once this works fine these scripts will be combined and more automation will be done.