Skip to content

Commit

Permalink
feat(semantic-release): configured semantic release plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiedrawa committed Mar 25, 2022
1 parent 016722c commit c953df7
Show file tree
Hide file tree
Showing 4 changed files with 1,592 additions and 296 deletions.
15 changes: 15 additions & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
branches:
- "main"
plugins:
- "@semantic-release/commit-analyzer"
- "@semantic-release/npm"
- "@semantic-release/release-notes-generator"
- "@semantic-release/github"
- - "@semantic-release/changelog"
- assets:
- CHANGELOG.md
- - "@semantic-release/git"
- assets:
- CHANGELOG.md
- package.json
message: "chore(release): ${nextRelease.version} \n\n${nextRelease.notes}"
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ with [Typescript](https://www.typescriptlang.org/), [Redux Toolkit](https://redu
, [Lint-staged](https://github.com/okonet/lint-staged), [Pretty Quick](https://github.com/azz/pretty-quick)
* [Husky](https://typicode.github.io/husky/#/)
* [Commitlint](https://commitlint.js.org/#/)
* [Standard Version](https://github.com/conventional-changelog/standard-version)
* [Semantic Release](https://github.com/semantic-release/semantic-release)
6. Opinionated folder structure
7. Internationalization for react app using [React-i18next](https://react.i18next.com/)
8. Material UI Dark Mode support
Expand Down Expand Up @@ -255,11 +255,9 @@ enable **Use paths relative to tsconfig.json**.
Create release version and generate a changelog file:

```shell
yarn release
GITHUB_TOKEN=YOUR-TOKEN yarn release
```

> :memo: **Note:** use `yarn release:first-release` if this is the first release.
> :bulb: **Tip:** `yarn release:dry-run` - allows you to see what commands would be run, without committing to git or updating files.
## 🛠 Useful dev tools
Expand Down
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@
"lint:css": "stylelint './src/**/*.{jsx,js,tsx,ts}'",
"storybook": "start-storybook -p 6006 -s public",
"build-storybook": "build-storybook -s public",
"release": "standard-version --no-verify",
"release:first-release": "standard-version --first-release --no-verify",
"release:dry-run": "standard-version --dry-run --no-verify",
"release": "semantic-release",
"release:dry-run": "semantic-release --dry-run",
"pre-commit": "lint-staged",
"postinstall": "husky install",
"eject": "react-scripts eject"
Expand All @@ -67,6 +66,11 @@
"@commitlint/cli": "16.2.1",
"@commitlint/config-conventional": "16.2.1",
"@mswjs/data": "^0.9.2",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^8.0.2",
"@semantic-release/npm": "^9.0.1",
"@semantic-release/release-notes-generator": "^10.0.3",
"@storybook/addon-actions": "^6.4.19",
"@storybook/addon-essentials": "^6.4.19",
"@storybook/addon-interactions": "^6.4.19",
Expand Down Expand Up @@ -107,7 +111,7 @@
"prettier": "2.5.1",
"pretty-quick": "3.1.3",
"redux-saga-test-plan": "^4.0.4",
"standard-version": "9.3.2",
"semantic-release": "^19.0.2",
"start-server-and-test": "^1.14.0",
"storybook-react-i18next": "^1.0.17",
"stylelint": "14.5.3",
Expand Down
Loading

0 comments on commit c953df7

Please sign in to comment.