Skip to content

Commit

Permalink
Merge pull request #192 from snyk/chore/semantic-release-pkg-assets
Browse files Browse the repository at this point in the history
chore: automate pkg assets publishing
  • Loading branch information
adrukh authored Aug 12, 2018
2 parents 4b666a8 + 1f89668 commit 9f8fc31
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 9f8fc31

Please sign in to comment.