forked from Stacked-Org/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.releaserc.json
30 lines (30 loc) · 878 Bytes
/
.releaserc.json
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
27
28
29
30
{
"$schema": "https://json.schemastore.org/semantic-release",
"branches": [
"main",
{
"name": "next",
"prerelease": "pre"
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/exec",
{
"verifyConditionsCmd": "if [ -z \"$CREDENTIALS\" ]; then exit 1; fi && mkdir -p ~/.config/dart && echo \"$CREDENTIALS\" > ~/.config/dart/pub-credentials.json",
"prepareCmd": "dart run build_runner build --delete-conflicting-outputs && sed -i 's/^version: .*$/version: ${nextRelease.version}/' pubspec.yaml",
"publishCmd": "dart pub publish -f"
}
],
[
"@semantic-release/git",
{
"assets": ["./CHANGELOG.md", "./pubspec.yaml"]
}
],
"@semantic-release/github"
]
}