Skip to content

Commit d2c352d

Browse files
committed
Pre-releases
1 parent 2b49f25 commit d2c352d

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.build/pre-release.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
patchVersion=$(npm --no-git-tag version patch)
4+
nextVersion=${patchVersion}-next."$(date +%Y%m%d%k%M%S)"
5+
echo "${nextVersion:1}"
6+
7+
npm version --no-git-tag -f "${nextVersion:1}"
8+
npm run publish-next

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
deploy:
6666
- provider: script
6767
skip_cleanup: false
68-
script: npm run publish-next
68+
script: bash ./build/pre-release.sh
6969
on:
7070
branch: develop
7171
- provider: script

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"coverage": "jest --coverage",
5151
"lint": "tslint -p tsconfig.json",
5252
"watch": "tsc -w -p .",
53-
"publish-next": "bump prerelease --preid next && npm publish --tag next",
53+
"publish-next": "npm publish --tag next",
5454
"prepublishOnly": "npm run compile",
5555
"versionBump": "bump --tag --push --all",
5656
"typedoc": "typedoc --options ./typedoc.js --out ./docs lib/"

0 commit comments

Comments
 (0)