-
Notifications
You must be signed in to change notification settings - Fork 4
/
.releaserc.yml
42 lines (40 loc) · 1.48 KB
/
.releaserc.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
branches:
- name: "main"
- name: "release/*"
prerelease: "snapshot"
- name: "beta"
prerelease: true
plugins:
- "@semantic-release/commit-analyzer"
- "@semantic-release/release-notes-generator"
- [ "@semantic-release/changelog", { changelogFile: "CHANGELOG.md" } ]
- "gradle-semantic-release-plugin"
- [ '@semantic-release/exec', {
prepareCmd: './gradlew :apollo:publishJsPackageToNpmjsRegistry' } ]
- [ '@semantic-release/exec', {
prepareCmd: './gradlew :apollo:createSwiftPackage' } ]
- [ '@semantic-release/exec', {
prepareCmd: '(cd ./apollo/build/packages/ApolloSwift && zip -r "Apollo.xcframework.zip" Apollo.xcframework)' } ]
- [ '@semantic-release/exec', {
prepareCmd: 'sed -i.bak -e "s/checksum:.*/checksum: \"$(swift package compute-checksum ./apollo/build/packages/ApolloSwift/Apollo.xcframework.zip)\"/g;s/download\/.*\/Apollo.xcframework.zip/download\/v${nextRelease.version}\/Apollo.xcframework.zip/g" Package.swift' } ]
- [
"@semantic-release/git",
{
assets: [
"Package.swift",
"CHANGELOG.md",
"gradle.properties",
],
message: "chore(release): cut apollo version ${nextRelease.version}
${nextRelease.notes}
Signed-off-by: Hyperledger Bot <[email protected]>",
},
]
- [
"@semantic-release/github",
{
"assets": [
{ "path": "apollo/build/packages/ApolloSwift/Apollo.xcframework.zip", "label": "Apollo.xcframework.zip" },
]
}
]