Skip to content

Commit

Permalink
chore: setup release it
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc committed Jan 31, 2023
1 parent d7aeb5f commit 77a70ac
Show file tree
Hide file tree
Showing 6 changed files with 2,094 additions and 4 deletions.
1 change: 1 addition & 0 deletions .env-example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GITHUB_TOKEN=
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ testem.log
Thumbs.db

.angular
.env
46 changes: 46 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"plugins": {
"@release-it/conventional-changelog": {
"preset": {
"name": "conventionalcommits",
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "cleanup",
"section": "Cleanup"
},
{
"type": "docs",
"section": "Documentations"
}
]
},
"infile": "CHANGELOG.md"
},
"@release-it/bumper": {
"in": "libs/angular-three-soba/version.json",
"out": ["libs/angular-three-soba/version.json", "dist/libs/**/package.json"]
}
},
"git": {
"commitMessage": "chore: release ${version}"
},
"npm": {
"publish": false
},
"github": {
"release": true,
"releaseName": "Release ${version}"
},
"hooks": {
"before:bump": "npx nx package angular-three-soba",
"after:bump": ["git checkout -- package.json"]
}
}
3 changes: 3 additions & 0 deletions libs/angular-three-soba/version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"version": "0.0.1"
}
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"name": "soba",
"version": "0.0.0",
"license": "MIT",
"scripts": {},
"scripts": {
"release": "dotenv release-it --"
},
"private": true,
"devDependencies": {
"@angular-devkit/build-angular": "~15.1.3",
Expand All @@ -20,6 +22,8 @@
"@nrwl/linter": "15.6.3",
"@nrwl/nx-plugin": "^15.6.3",
"@nrwl/workspace": "15.6.3",
"@release-it/bumper": "^4.0.2",
"@release-it/conventional-changelog": "^5.1.1",
"@swc-node/register": "^1.4.2",
"@swc/cli": "~0.1.55",
"@swc/core": "^1.2.173",
Expand All @@ -28,6 +32,7 @@
"@types/three": "^0.149.0",
"@typescript-eslint/eslint-plugin": "^5.50.0",
"@typescript-eslint/parser": "^5.50.0",
"dotenv-cli": "^7.0.0",
"eslint": "~8.33.0",
"eslint-config-prettier": "8.6.0",
"jest": "28.1.1",
Expand All @@ -42,6 +47,7 @@
"postcss-url": "~10.1.3",
"prettier": "^2.8.3",
"prettier-plugin-organize-imports": "^3.2.2",
"release-it": "^15.6.0",
"ts-jest": "28.0.5",
"ts-node": "10.9.1",
"typescript": "~4.9.5"
Expand Down
Loading

0 comments on commit 77a70ac

Please # to comment.