forked from twilio/rtc-diagnostics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.release.json
56 lines (56 loc) · 1.76 KB
/
.release.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
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
56
{
"type": "JavaScript",
"ci": "travis-pro",
"slug": "twilio/rtc-diagnostics",
"env": {
"GH_REF": "github.com/twilio/rtc-diagnostics.git"
},
"plans": {
"release": {
"env": {
"GIT_USER_NAME": "twilio-ci",
"GIT_USER_EMAIL": "[email protected]"
},
"commands": [
"node ./node_modules/.bin/release --bump ${CURRENT_VERSION} ${RELEASE_VERSION}",
"git config user.name \"${GIT_USER_NAME}\"",
"git config user.email \"${GIT_USER_EMAIL}\"",
"git rm -rf --ignore-unmatch dist es5 docs",
"npm run build:release",
"git add package.json",
"git add -f dist es5 docs",
"git commit -nm \"${RELEASE_VERSION}\"",
"git tag ${RELEASE_VERSION}",
"git remote set-url origin \"https://${GH_TOKEN}@${GH_REF}\"",
"git rebase HEAD ${BRANCH}",
"git push origin ${BRANCH} --tags",
"git fetch --all",
"git checkout ${RELEASE_VERSION}",
"git rm -rf docs",
"git commit -nm \"Preparing gh-pages\"",
"git subtree add --prefix docs origin gh-pages",
"npm run docs",
"git stage docs -f",
"git commit -nm \"${RELEASE_VERSION}\"",
"git subtree push --prefix docs origin gh-pages",
"git checkout ${BRANCH}",
"git reset --hard origin/${BRANCH}"
]
},
"development": {
"commands": [
"node ./node_modules/.bin/release --bump ${RELEASE_VERSION} ${DEVELOPMENT_VERSION}",
"git rm -rf dist es5 docs",
"npm run clean",
"git add package.json",
"git commit -nm \"${DEVELOPMENT_VERSION}\"",
"git push origin ${BRANCH}"
]
},
"publish": {
"commands": [
"echo \"publish command not implemented\""
]
}
}
}