feat: use semantic-release

This commit is contained in:
Thomas Nordquist
2024-05-10 18:46:06 +02:00
parent b9a5a5f1d8
commit 9b7c3b8e9c
4 changed files with 2532 additions and 1896 deletions

27
.releaserc Normal file
View File

@@ -0,0 +1,27 @@
{
"branches": [
"master",
{
"name": "beta",
"prerelease": true
},
{
"name": "alpha",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"semantic-release-export-data",
"@semantic-release/changelog",
[
"@semantic-release/git",
{
"assets": [
"package.json",
"yarn.lock"
]
}
]
]
}

View File

@@ -6,6 +6,34 @@
"engines": { "engines": {
"node": ">=18" "node": ">=18"
}, },
"private": "true",
"release": {
"branches": [
"master",
{
"name": "beta",
"prerelease": true
},
{
"name": "alpha",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"semantic-release-export-data",
"@semantic-release/changelog",
[
"@semantic-release/git",
{
"assets": [
"package.json",
"yarn.lock"
]
}
]
]
},
"scripts": { "scripts": {
"start": "electron .", "start": "electron .",
"test": "yarn test:app && yarn test:backend", "test": "yarn test:app && yarn test:backend",
@@ -79,9 +107,9 @@
"@babel/runtime": "^7.17.2", "@babel/runtime": "^7.17.2",
"@cspell/dict-typescript": "^3.1.2", "@cspell/dict-typescript": "^3.1.2",
"@electron/notarize": "^2.3.0", "@electron/notarize": "^2.3.0",
"@semantic-release/commit-analyzer": "^12.0.0", "@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "11",
"@semantic-release/git": "^10.0.1", "@semantic-release/git": "^10.0.1",
"@semantic-release/npm": "^12.0.1",
"@types/chai": "^4.1.7", "@types/chai": "^4.1.7",
"@types/fs-extra": "8", "@types/fs-extra": "8",
"@types/lowdb": "^1.0.6", "@types/lowdb": "^1.0.6",
@@ -104,7 +132,7 @@
"playwright": "^1.43.0", "playwright": "^1.43.0",
"prettier": "^3.2.5", "prettier": "^3.2.5",
"redux-thunk": "^2.3.0", "redux-thunk": "^2.3.0",
"semantic-release": "^23.0.8", "semantic-release": "11",
"semantic-release-export-data": "^1.0.1", "semantic-release-export-data": "^1.0.1",
"source-map-support": "^0.5.9", "source-map-support": "^0.5.9",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",

View File

@@ -1,20 +0,0 @@
module.exports = {
branches: ['master', { name: 'beta', prerelease: true }, { name: 'alpha', prerelease: true }],
plugins: [
'@semantic-release/commit-analyzer',
'semantic-release-export-data',
'@semantic-release/changelog',
[
'@semantic-release/npm',
{
npmPublish: false,
},
],
[
'@semantic-release/git',
{
assets: ['package.json', 'yarn.lock'],
},
],
],
}

4347
yarn.lock

File diff suppressed because it is too large Load Diff