-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrever.xsh
41 lines (34 loc) · 985 Bytes
/
rever.xsh
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
from rever.activity import activity
# Check that we are on the master branch
branch=$(git branch --show-current)
if branch.strip() != "master":
raise Exception("You must be on the master branch to release.")
# and that it is up to date with origin/master
git fetch https://github.com/flatsurf/vue-flatsurf.git
git reset FETCH_HEAD
git diff --exit-code
git diff --cached --exit-code
@activity
def publish():
yarn
yarn build
yarn publish --new-version $VERSION
$PROJECT = 'vue-flatsurf'
$ACTIVITIES = [
'version_bump',
'changelog',
'tag',
'push_tag',
'ghrelease',
'publish',
]
$VERSION_BUMP_PATTERNS = [
('package.json', r'"version":', r'"version": "$VERSION",'),
]
$CHANGELOG_FILENAME = 'ChangeLog'
$CHANGELOG_TEMPLATE = 'TEMPLATE.rst'
$CHANGELOG_NEWS = 'news'
$CHANGELOG_CATEGORIES = ('Added', 'Changed', 'Removed', 'Fixed')
$PUSH_TAG_REMOTE = '[email protected]:flatsurf/vue-flatsurf.git'
$GITHUB_ORG = 'flatsurf'
$GITHUB_REPO = 'vue-flatsurf'