ci: pr title lint job does not need to install all dependencies (#5124)

This commit is contained in:
LongYinan
2023-11-29 09:51:14 +00:00
parent 89f267a3fe
commit a2b8a073cc
5 changed files with 41 additions and 3 deletions

View File

@@ -0,0 +1,33 @@
{
"extends": ["@commitlint/config-conventional"],
"rules": {
"scope-enum": [
2,
"always",
[
"electron",
"server",
"core",
"docs",
"storybook",
"component",
"workspace",
"env",
"graphql",
"cli",
"hooks",
"i18n",
"native",
"templates",
"y-indexeddb",
"y-provider",
"debug",
"storage",
"infra",
"plugin-cli",
"sdk",
"plugin"
]
]
}
}

View File

@@ -0,0 +1,3 @@
# commitlint
This package defines commitlint and it's dependencies, so that it can be used in a CI pipeline to minimize the installation time.

View File

@@ -0,0 +1,10 @@
{
"name": "@affine/commitlint-config",
"version": "0.0.0",
"private": true,
"devDependencies": {
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"commitlint": "^18.4.3"
}
}