Skip to content

Commit

Permalink
ci: fix and simplify version and github configurations (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
IKatsuba authored Nov 28, 2023
1 parent 6102af8 commit 7118c8b
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 85 deletions.
19 changes: 5 additions & 14 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,20 @@
"cache": true
},
"version": {
"dependsOn": ["^build"],
"inputs": ["production", "^production"],
"executor": "@jscutlery/semver:version",
"options": {
"commitMessageFormat": "release({projectName}): {version} [skip ci]",
"tagPrefix": "{projectName}@",
"preset": {
"name": "conventionalcommits",
"types": [
{ "type": "feat", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "build", "section": "Dependency updates" },
{ "type": "docs", "section": "Documentation" },
{ "type": "refactor", "section": "Code Refactoring" },
{ "type": "perf", "section": "Performance Improvements" }
]
}
"preset": "angular",
"postTargets": ["github"],
"push": true
}
},
"github": {
"executor": "@jscutlery/semver:github",
"options": {
"tag": "{tag}"
"tag": "{tag}",
"notes": "{notes}"
}
},
"e2e": {
Expand Down
44 changes: 17 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"benchmark": "^2.1.4",
"commitizen": "^4.3.0",
"commitlint-plugin-tense": "^1.0.2",
"conventional-changelog-angular": "^7.0.0",
"dotenv": "^16.3.1",
"esbuild": "^0.19.2",
"eslint": "~8.46.0",
Expand Down
10 changes: 2 additions & 8 deletions packages/cli/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,8 @@
"command": "node tools/scripts/publish.mjs cli {args.ver} {args.tag}",
"dependsOn": ["build"]
},
"version": {
"postTargets": ["cli:github"]
},
"github": {
"options": {
"notesFile": "./packages/cli/CHANGELOG.md"
}
},
"version": {},
"github": {},
"lint": {
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
Expand Down
8 changes: 2 additions & 6 deletions packages/core/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@
"esbuildConfig": "esbuild.config.js"
}
},
"version": { "postTargets": ["core:github"] },
"github": {
"options": {
"notesFile": "./packages/core/CHANGELOG.md"
}
},
"version": {},
"github": {},
"publish": {
"command": "node tools/scripts/publish.mjs core {args.ver} {args.tag}",
"dependsOn": ["build"]
Expand Down
8 changes: 2 additions & 6 deletions packages/models/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@
"esbuildConfig": "esbuild.config.js"
}
},
"version": { "postTargets": ["models:github"] },
"github": {
"options": {
"notesFile": "./packages/models/CHANGELOG.md"
}
},
"version": {},
"github": {},
"publish": {
"command": "node tools/scripts/publish.mjs models {args.ver} {args.tag}",
"dependsOn": ["build"]
Expand Down
8 changes: 2 additions & 6 deletions packages/nx-plugin/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,8 @@
]
}
},
"version": { "postTargets": ["nx-plugin:github"] },
"github": {
"options": {
"notesFile": "./packages/nx-plugin/CHANGELOG.md"
}
},
"version": {},
"github": {},
"exec:init": {
"command": "nx g ./dist/packages/nx-plugin:init",
"dependsOn": ["build"]
Expand Down
8 changes: 2 additions & 6 deletions packages/plugin-eslint/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@
"esbuildConfig": "esbuild.config.js"
}
},
"version": { "postTargets": ["plugin-eslint:github"] },
"github": {
"options": {
"notesFile": "./packages/plugin-eslint/CHANGELOG.md"
}
},
"version": {},
"github": {},
"publish": {
"command": "node tools/scripts/publish.mjs plugin-eslint {args.ver} {args.tag}",
"dependsOn": ["build"]
Expand Down
8 changes: 2 additions & 6 deletions packages/plugin-lighthouse/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@
"esbuildConfig": "esbuild.config.js"
}
},
"version": { "postTargets": ["plugin-lighthouse:github"] },
"github": {
"options": {
"notesFile": "./packages/plugin-lighthouse/CHANGELOG.md"
}
},
"version": {},
"github": {},
"lint": {
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
Expand Down
8 changes: 2 additions & 6 deletions packages/utils/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@
"esbuildConfig": "esbuild.config.js"
}
},
"version": { "postTargets": ["utils:github"] },
"github": {
"options": {
"notesFile": "./packages/utils/CHANGELOG.md"
}
},
"version": {},
"github": {},
"publish": {
"command": "node tools/scripts/publish.mjs utils {args.ver} {args.tag}",
"dependsOn": ["build"]
Expand Down

0 comments on commit 7118c8b

Please sign in to comment.