Skip to content

Commit

Permalink
Fix: Chnage README and another improvements
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Nikitin <andrew.nikitin@cheqd.io>
  • Loading branch information
Andrew Nikitin committed May 27, 2022
1 parent a7bce24 commit 4b4c401
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
12 changes: 8 additions & 4 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
name: 'release/1.1.x',
channel: 'release/1.1.x'
},
'main'
{
name: 'release/2.0.x',
channel: 'release/2.0.x'
}
],
"debug": "true",
"plugins": [
Expand All @@ -19,10 +22,11 @@
"releaseRules": [
{
"tag": "Breaking",
"release": "minor"
"release": "major"
},
{"tag": "New", "release": "patch"},
{"tag": "Update", "release": "patch"},
{"tag": "New", "release": "minor"},
{"tag": "Update", "release": "minor"},
{"tag": "Fix", "release": "patch"},
],
}
],
Expand Down
18 changes: 14 additions & 4 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@

# Overview

## Tags

Here we are going to use tags from eslint plugin:
### The Tag is one of the following:

### The Tag is one of the following

- Fix - for a bug fix.
- Update - either for a backwards-compatible enhancement or for a rule change that adds reported problems.
Expand All @@ -14,22 +17,26 @@ Here we are going to use tags from eslint plugin:
- Chore - for refactoring, adding tests, etc. (anything that isn't user-facing).

## Version changing

`Breaking` tag will trigger the changing of `minor` number in version
`New`, `Update` will change the `patch`
Others will not change version number.
For example, the next commit message will trigger a `minor` number changing:

```text
Breaking: Change the logic of transaction handling
```

And the next message will change only a `patch` number:

```text
New: Add new transaction type
```

## How to setup

### `semantic-release` related packages:
### `semantic-release` related packages

It's neede to setup the next packages as `devDependencies` in `package.json`:
```text
"@semantic-release/commit-analyzer": "^9.0.2",
Expand All @@ -42,7 +49,8 @@ It's neede to setup the next packages as `devDependencies` in `package.json`:
```
- `conventional-changelog-eslint` is needed for analyzing commits in `eslint` style as described [here](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-eslint)

### Semantic config:
### Semantic config

For now, the main config is placed in the root directory, and file named as `.releaserc`:
```yaml
{
Expand Down Expand Up @@ -102,6 +110,7 @@ For now, functionality of `range` parameter for `branches` is broken and we cann

Due to github actions steps the main thing here is the command `npx semantic-release --debug` that will run the whole process for analyzing, checking and publishing release with artifacts. Also, pacakge will be published to npm registry
The example of this workflow can be:

```yaml
release:
runs-on: ubuntu-latest
Expand All @@ -119,9 +128,10 @@ The example of this workflow can be:
```

### NPM registry.

For now, we are using github as a npm registry. The file with registry address de to this:
`.npmrc`:

```file
@cheqd:registry=https://npm.pkg.github.com
```
```

0 comments on commit 4b4c401

Please sign in to comment.