Skip to content

Commit

Permalink
chore: automate pkg assets publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Drukh committed Aug 11, 2018
1 parent 4b666a8 commit 1f89668
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"prepare": [
"@semantic-release/npm",
{
"path": "@semantic-release/exec",
"cmd": "npx pkg ."
}
],
"publish": [
"@semantic-release/npm",
{
"path": "@semantic-release/github",
"assets": [
{
"path": "./snyk-linux",
"name": "snyk-linux",
"label": "snyk-linux"
},
{
"path": "./snyk-macos",
"name": "snyk-macos",
"label": "snyk-macos"
},
{
"path": "./snyk-win.exe",
"name": "snyk-win.exe",
"label": "snyk-win.exe"
}
]
}
]
}
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- stage: Release
node_js: "8"
script:
- test "${TRAVIS_PULL_REQUEST}" = "true" || npx semantic-release
- test "${TRAVIS_PULL_REQUEST}" != "false" || npx semantic-release
branches:
only:
- "master"

0 comments on commit 1f89668

Please sign in to comment.