Skip to content

Commit

Permalink
Merge 7e6aef5 into b0c5b1a
Browse files Browse the repository at this point in the history
  • Loading branch information
fboucquez committed Feb 25, 2020
2 parents b0c5b1a + 7e6aef5 commit c9c9665
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 13 deletions.
21 changes: 13 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,22 @@ cache:
- "node_modules"
before_script:
- npm run build
script:
script:
- npm run test:cov
- npm run coveralls-report
- npm install --global typedoc
- typedoc --out ts-docs src
- touch ./ts-docs/.nojekyll
deploy:
provider: pages
skip_cleanup: true
local_dir: ts-docs
github_token: $GITHUB_TOKEN
on:
branch: master

- provider: pages
skip_cleanup: true
local_dir: ts-docs
github_token: $GITHUB_TOKEN
on:
branch: master
- provider: script
skip_cleanup: true
script: /bin/sh travis/uploadArchives.sh
on:
branch: master
node_js: 8
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "symbol-sdk",
"version": "0.17.1",
"version": "0.17.2",
"description": "Reactive symbol sdk for typescript and javascript",
"scripts": {
"pretest": "npm run build",
Expand All @@ -11,7 +11,8 @@
"build": "rm -rf dist/ && tsc && npm run e2econfigcopy",
"test:cov": "nyc --reporter=lcov --reporter=text-summary npm t",
"test:coveralls": "npm run test:cov | coveralls",
"coveralls-report": "cat ./coverage/lcov.info | coveralls"
"coveralls-report": "cat ./coverage/lcov.info | coveralls",
"version": "echo $npm_package_version"
},
"contributors": [
{
Expand Down
11 changes: 11 additions & 0 deletions travis/uploadArchives.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -e

CURRENT_VERSION=$(npm run version --silent)
NEW_VERSION="$CURRENT_VERSION-alpha-$(date +%Y%m%d%H%M)"

echo "Uploading npm package version $NEW_VERSION"

npm version "$NEW_VERSION" --commit-hooks false --git-tag-version false

npm publish --tag alpha

0 comments on commit c9c9665

Please sign in to comment.