diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 0000000..ece8360 --- /dev/null +++ b/.releaserc.json @@ -0,0 +1,24 @@ +{ + "branches": [ + "main" + ], + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + "@semantic-release/changelog", + [ + "@semantic-release/git", + { + "assets": "./CHANGELOG.md" + } + ], + [ + "@semantic-release/exec", + { + "publishCmd": ".semantic-release/publish.sh ${nextRelease.version}" + } + ] + ], + "tagFormat": "deploy-${version}", + "repositoryUrl": "https://github.com/francescopisu/CVD-risk-scores" + } \ No newline at end of file diff --git a/.semantic-release/package.json b/.semantic-release/package.json index 677f522..0157c89 100644 --- a/.semantic-release/package.json +++ b/.semantic-release/package.json @@ -9,15 +9,5 @@ "@semantic-release/changelog": "6.0.1", "@semantic-release/exec": "6.0.3", "@semantic-release/git": "10.0.1" - }, - "release": { - "branches": [ - "+([0-9])?(.{+([0-9]),x}).x", - "main", - "next", - "next-major", - { "name": "beta", "prerelease": true }, - { "name": "alpha", "prerelease": true } - ] } } \ No newline at end of file diff --git a/.semantic-release/publish.sh b/.semantic-release/publish.sh new file mode 100644 index 0000000..94b3d58 --- /dev/null +++ b/.semantic-release/publish.sh @@ -0,0 +1 @@ +echo "$1" > /tmp/CVD-risk-scores-next-tag \ No newline at end of file