Skip to content
This repository has been archived by the owner on Dec 10, 2022. It is now read-only.

Commit

Permalink
fix(release): Publish npm tarball to github
Browse files Browse the repository at this point in the history
  • Loading branch information
gund committed Jan 2, 2018
1 parent e80c5ef commit 5f5ea24
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ script:
- npm run build
after_success:
- npm run test:report
- cp -R .git dist/
- cd dist
- npm install -g travis-deploy-once@4
- travis-deploy-once "npm run semantic-release"
branches:
Expand Down
18 changes: 18 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,23 @@
"tslint --fix",
"git add"
]
},
"release": {
"publish": [
{
"path": "@semantic-release/github",
"pkgRoot": "dist",
"tarballDir": "dist-tar/tarball.tgz"
},
{
"path": "@semantic-release/github",
"assets": [
{
"path": "dist-tar/tarball.tgz",
"label": "Package Tarball"
}
]
}
]
}
}

0 comments on commit 5f5ea24

Please sign in to comment.