Skip to content
This repository was archived by the owner on Jun 11, 2021. It is now read-only.

Commit 2743c78

Browse files
committed
chore: use standard-version to handle versioning and changelog
1 parent b66ff89 commit 2743c78

File tree

3 files changed

+1324
-5
lines changed

3 files changed

+1324
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
*.log
1717

18+
node_modules/
19+
1820
# Terrafile output
1921
vendor/modules
2022
xterrafile

package.json

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,17 @@
66
"private": true,
77
"scripts": {
88
"test": "go build -v ; go test -v ./...",
9-
"gitbranch": "BRANCH=$(git rev-parse --abbrev-ref HEAD); if [[ \"$BRANCH\" != \"master\" ]]; then echo \"you must be on master branch to release\"; exit 1 ; fi",
10-
"gitstatus": "STATUS=$(git status --porcelain 2>&1); echo $STATUS; if [[ ! -z \"$STATUS\" ]]; then exit 1; fi;",
11-
"gittest": "yarn gitbranch && yarn gitstatus",
12-
"preversion": "yarn gittest && yarn test",
13-
"postversion": "git push --follow-tags"
9+
"gitbranch": "BRANCH=$(git rev-parse --abbrev-ref HEAD); if [[ \"$BRANCH\" != \"master\" ]]; then echo \"you must be on master branch to release\" >&2; exit 1 ; fi",
10+
"gitstatus": "STATUS=$(git status --porcelain 2>&1); echo $STATUS >&2; if [[ ! -z \"$STATUS\" ]]; then exit 1; fi;",
11+
"gittest": "yarn gitbranch && yarn gitstatus"
12+
},
13+
"standard-version": {
14+
"scripts": {
15+
"prerelease": "yarn gittest && yarn test",
16+
"postrelease": "git push --follow-tags origin master"
17+
}
18+
},
19+
"dependencies": {
20+
"standard-version": "^7.0.0"
1421
}
1522
}

0 commit comments

Comments
 (0)