Skip to content

Commit bc45c22

Browse files
onesignal-deployOneSignal
andauthored
chore: add v5.7.0 package updates (#170)
Co-authored-by: OneSignal <noreply@onesignal.com>
1 parent b995cbd commit bc45c22

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
run: |
3535
npx -p semantic-release \
3636
-p @semantic-release/changelog \
37+
-p @semantic-release/exec \
3738
-p @semantic-release/git \
3839
-p @semantic-release/github \
3940
-p @semantic-release/npm \

.releaserc.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@
7474
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes} [skip ci]"
7575
}
7676
],
77-
"@semantic-release/github"
77+
"@semantic-release/github",
78+
[
79+
"@semantic-release/exec",
80+
{
81+
"successCmd": "case '${nextRelease.version}' in *-alpha*) ch=alpha;; *-beta*) ch=beta;; *) ch=current;; esac; body=$(gh release view '${nextRelease.gitTag}' --json body --jq .body); case \"$body\" in '**Channels:**'*) exit 0;; esac; printf '**Channels:** %s\\n\\n%s' \"$ch\" \"$body\" | gh release edit '${nextRelease.gitTag}' --notes-file -"
82+
}
83+
]
7884
]
7985
}

0 commit comments

Comments
 (0)