-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlefthook.semver.yml
27 lines (27 loc) · 967 Bytes
/
lefthook.semver.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
---
pre-push:
# commands:
# bump:
# tags: semver
# name: bump
# run: |
# # TODO: Verify this syntax work on window
# # preparation
# # NOTE: SBOT was failing with error 128
# sbot update version --config .semverbot.toml || echo "already updated"
# RELEASE_VERSION=`sbot predict version`
# echo "current version: $(sbot get version)"
# echo "next version: $RELEASE_VERSION"
# sbot release version --config .semverbot.toml && echo "sbot release result: $(git describe --always)"
# sbot push version --config .semverbot.toml && echo "sbot push version complete"
commands:
bump:
tags: semver
name: bump
run: |
unchain release
echo "unchain: $(git describe --always)"
npm version $(git describe --always)
echo "bumped npm package version to [$VERSION]"
git add .
git commit --amend --no-edit --no-verify