-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.config.js
55 lines (54 loc) · 1.77 KB
/
release.config.js
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
43
44
45
46
47
48
49
50
51
52
53
54
55
const marked = require('marked');
module.exports = {
branches: ['main', { name: 'beta', prerelease: true }],
repository: 'https://github.com/Muhammed-Rahif/Islam',
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
[
'@semantic-release/github',
{
assets: [
{
path: 'android/app/build/outputs/apk/release/app-release.apk',
label: 'app-release-v${nextRelease.version}.apk',
name: 'app-release-v${nextRelease.version}.apk',
},
{
path: 'android/app/build/outputs/apk/debug/app-debug.apk',
label: 'app-debug-v${nextRelease.version}.apk',
name: 'app-debug-v${nextRelease.version}.apk',
},
{
path: 'CHANGELOG.md',
label: 'CHANGELOG',
name: 'CHANGELOG-${nextRelease.version}.md',
},
],
},
],
[
'@semantic-release/exec',
{
prepareCmd:
'chmod +x scripts/build/build-android.sh && scripts/build/build-android.sh ${nextRelease.gitTag}',
successCmd:
'yarn tsc scripts/telegram-bot/success-release.ts --skipLibCheck --lib es2021 && node scripts/telegram-bot/success-release.js --versionName ${nextRelease.gitTag} --releaseType ${nextRelease.type} --branchName ${branch.name} --releaseNotes "${nextRelease.notes}"',
},
],
[
'@semantic-release/git',
{
assets: [
'CHANGELOG.md',
'package.json',
'android/app/build.gradle',
'ios/App/App.xcodeproj/project.pbxproj',
],
message:
'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
],
],
};