Chore: setting up nx releases (#22264)

This commit is contained in:
Bassel Kanso 2024-11-28 12:58:55 +02:00 committed by GitHub
parent f0a0bc26f5
commit 9b8b68f7e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 2076 additions and 33 deletions

View File

@ -18,6 +18,7 @@ const config: UserConfig = {
'revert',
'security',
'test',
'future',
],
],
},

57
nx.json
View File

@ -45,5 +45,60 @@
"cache": true
}
},
"useInferencePlugins": false
"useInferencePlugins": false,
"pluginsConfig": {
"@nx/js": {
"analyzeSourceFiles": false
}
},
"release": {
"projects": ["packages/**/*"],
"changelog": {
"workspaceChangelog": {
"file": false,
"createRelease": "github"
}
},
"version": {
"conventionalCommits": false
},
"git": {
"commitMessage": "release: {version}"
},
"conventionalCommits": {
"types": {
"docs": {
"changelog": {
"title": "📚 Documentation Changes"
}
},
"enhancement": {
"changelog": {
"title": "💅 Enhancement"
}
},
"feat": {
"changelog": {
"title": "🚀 New feature"
}
},
"fix": {
"changelog": {
"title": "🔥 Bug fix"
}
},
"security": {
"semverBump": "patch",
"changelog": {
"title": "🚨 Security"
}
},
"chore": {
"changelog": {
"title": "⚙️ Chore"
}
}
}
}
}
}

View File

@ -49,6 +49,7 @@
"prettier:code": "prettier --cache --cache-strategy content \"**/*.{js,ts,jsx,tsx,json}\"",
"prettier:other": "prettier --cache --cache-strategy content \"**/*.{md,mdx,css,scss,yaml,yml}\"",
"prettier:write": "prettier --write \"**/*.{js,ts,jsx,tsx,json,md,mdx,css,scss,yaml,yml}\"",
"release": "nx release",
"setup": "yarn && yarn clean && yarn build --skip-nx-cache",
"test:api": "node tests/scripts/run-api-tests.js",
"test:api:clean": "rimraf ./coverage",
@ -86,9 +87,11 @@
"@commitlint/cli": "19.2.0",
"@commitlint/config-conventional": "19.1.0",
"@commitlint/prompt-cli": "19.2.0",
"@nx/js": "20.1.0",
"@playwright/test": "1.48.2",
"@strapi/admin-test-utils": "workspace:*",
"@strapi/eslint-config": "0.2.0",
"@swc-node/register": "~1.9.1",
"@swc/cli": "0.3.10",
"@swc/core": "1.4.8",
"@swc/helpers": "0.5.7",
@ -138,7 +141,7 @@
"lerna": "8.1.2",
"lint-staged": "15.2.10",
"lodash": "4.17.21",
"nx": "18.2.2",
"nx": "20.1.0",
"plop": "4.0.1",
"prettier": "3.3.3",
"prettier-2": "npm:prettier@^2",

2046
yarn.lock

File diff suppressed because it is too large Load Diff