Skip to content

Commit

Permalink
feat: sha256 checksums for binary releases
Browse files Browse the repository at this point in the history
With this, sha256 checksums will be computed for the binary packages of
the CLI and will be uploaded together with the binaries as release assets
to GitHub, and will be named as `snyk-<platform>.sha256`.
  • Loading branch information
michael-go committed Dec 5, 2018
1 parent 4d9d1ac commit 0b13a04
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"@semantic-release/npm",
{
"path": "@semantic-release/exec",
"cmd": "npm i -g pkg && pkg ."
"cmd": "npm i -g pkg && pkg . && shasum -a 256 snyk-linux > snyk-linux.sha256 && shasum -a 256 snyk-macos > snyk-macos.sha256 && shasum -a 256 snyk-win.exe > snyk-win.exe.sha256"
}
],
"publish": [
Expand All @@ -16,16 +16,31 @@
"name": "snyk-linux",
"label": "snyk-linux"
},
{
"path": "./snyk-linux.sha256",
"name": "snyk-linux.sha256",
"label": "snyk-linux.sha256"
},
{
"path": "./snyk-macos",
"name": "snyk-macos",
"label": "snyk-macos"
},
{
"path": "./snyk-macos.sha256",
"name": "snyk-macos.sha256",
"label": "snyk-macos.sha256"
},
{
"path": "./snyk-win.exe",
"name": "snyk-win.exe",
"label": "snyk-win.exe"
}
{
"path": "./snyk-win.exe.sha256",
"name": "snyk-win.exe.sha256",
"label": "snyk-win.exe.sha256"
}
]
}
]
Expand Down

0 comments on commit 0b13a04

Please sign in to comment.