forked from gip-inclusion/carnet-de-bord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.releaserc
26 lines (26 loc) · 853 Bytes
/
.releaserc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
plugins:
- - "@semantic-release/commit-analyzer"
- releaseRules:
- type: feat
release: minor
- release: patch
- "@semantic-release/release-notes-generator"
- "@semantic-release/changelog"
# bump frontend version (package.json)
- - "@semantic-release/exec"
- execCwd: "app"
prepareCmd: |
npm version ${nextRelease.version} --no-git-tag-version
# bump backend version (pyproject.toml)
- - "@semantic-release/exec"
- execCwd: "backend"
prepareCmd: |
sed -i.bak '1,/^version/s/^version.*$/version = "${nextRelease.version}"/' pyproject.toml
- - "@semantic-release/git"
- assets:
- CHANGELOG.md
- app/package.json
- app/package-lock.json
- backend/pyproject.toml
message: "chore(release): ${nextRelease.version}"
- "@semantic-release/github"