Skip to content

Commit d9aee05

Browse files
committed
travis alpha deployments from master
1 parent b0c5b1a commit d9aee05

File tree

4 files changed

+30
-13
lines changed

4 files changed

+30
-13
lines changed

.travis.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,22 @@ cache:
88
- "node_modules"
99
before_script:
1010
- npm run build
11-
script:
11+
script:
1212
- npm run test:cov
1313
- npm run coveralls-report
1414
- npm install --global typedoc
1515
- typedoc --out ts-docs src
1616
- touch ./ts-docs/.nojekyll
1717
deploy:
18-
provider: pages
19-
skip_cleanup: true
20-
local_dir: ts-docs
21-
github_token: $GITHUB_TOKEN
22-
on:
23-
branch: master
24-
18+
- provider: pages
19+
skip_cleanup: true
20+
local_dir: ts-docs
21+
github_token: $GITHUB_TOKEN
22+
on:
23+
branch: master
24+
- provider: script
25+
skip_cleanup: true
26+
script: /bin/sh travis/uploadArchives.sh
27+
on:
28+
branch: master
29+
node_js: "8"

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "symbol-sdk",
3-
"version": "0.17.1",
3+
"version": "0.17.2",
44
"description": "Reactive symbol sdk for typescript and javascript",
55
"scripts": {
66
"pretest": "npm run build",
@@ -11,7 +11,8 @@
1111
"build": "rm -rf dist/ && tsc && npm run e2econfigcopy",
1212
"test:cov": "nyc --reporter=lcov --reporter=text-summary npm t",
1313
"test:coveralls": "npm run test:cov | coveralls",
14-
"coveralls-report": "cat ./coverage/lcov.info | coveralls"
14+
"coveralls-report": "cat ./coverage/lcov.info | coveralls",
15+
"version": "echo $npm_package_version"
1516
},
1617
"contributors": [
1718
{

travis/uploadArchives.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
CURRENT_VERSION=$(npm run version --silent)
5+
NEW_VERSION="$CURRENT_VERSION-alpha-$(date +%Y%m%d%H%M)"
6+
7+
echo "Uploading npm package version $NEW_VERSION"
8+
9+
npm version "$NEW_VERSION" --commit-hooks false --git-tag-version false
10+
11+
npm publish --tag alpha

0 commit comments

Comments
 (0)