Skip to content
This repository was archived by the owner on Jan 23, 2022. It is now read-only.

Commit 2e41e4a

Browse files
committed
ci: adjust release it hooks
1 parent 3bc8dc2 commit 2e41e4a

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

.release-it.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,13 @@
4343
"github": {
4444
"release": true,
4545
"releaseName": "Release ${version}"
46+
},
47+
"hooks": {
48+
"before:init": [
49+
"npm run copy-readme",
50+
"git add .",
51+
"git commit --amend --no-edit"
52+
],
53+
"after:bump": "npm run build"
4654
}
4755
}

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ngrx-slice
22

3-
`ngrx-slice` is a POC that intends to provide the same functionalities
3+
`ngrx-slice` is a plugin that intends to provide the same functionalities
44
that [Redux Toolkit createSlice](https://redux-toolkit.js.org/api/createSlice) provides. It is meant to be **opinionated**.
55

66
## Peer Dependencies
@@ -35,8 +35,6 @@ that [Redux Toolkit createSlice](https://redux-toolkit.js.org/api/createSlice) p
3535
the hood for State updates
3636
- Customizable (partial) Actions' types
3737

38-
> WARNING: Please be cautious when using this package as is is a POC.
39-
4038
## Installation
4139

4240
```shell
@@ -353,4 +351,4 @@ export declare function createSlice<
353351

354352
## Contribution
355353

356-
Contributions are welcomed
354+
Contributions welcome

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"ng": "ng",
66
"start": "ng serve",
77
"build": "ng build",
8-
"prebuild": "shx cp README.md projects/ngrx-slice",
8+
"copy-readme": "shx cp README.md projects/ngrx-slice",
99
"watch": "ng build --watch --configuration development",
1010
"test": "ng test",
1111
"test:prod": "ng test --browsers=ChromeHeadless --watch=false --code-coverage",

projects/ngrx-slice/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ngrx-slice
22

3-
`ngrx-slice` is a POC that intends to provide the same functionalities
3+
`ngrx-slice` is a plugin that intends to provide the same functionalities
44
that [Redux Toolkit createSlice](https://redux-toolkit.js.org/api/createSlice) provides. It is meant to be **opinionated**.
55

66
## Peer Dependencies
@@ -35,8 +35,6 @@ that [Redux Toolkit createSlice](https://redux-toolkit.js.org/api/createSlice) p
3535
the hood for State updates
3636
- Customizable (partial) Actions' types
3737

38-
> WARNING: Please be cautious when using this package as is is a POC.
39-
4038
## Installation
4139

4240
```shell
@@ -353,4 +351,4 @@ export declare function createSlice<
353351

354352
## Contribution
355353

356-
Contributions are welcomed
354+
Contributions welcome

0 commit comments

Comments
 (0)