Skip to content

Commit

Permalink
Merge pull request #11 from snyk-tech-services/feat/releaserc
Browse files Browse the repository at this point in the history
feat: add releaserc
  • Loading branch information
lili2311 authored Oct 1, 2020
2 parents 89a04db + a694b4c commit 01fa74a
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"prepare": [
"@semantic-release/npm",
{
"//": "adds a file to identify a build as a standalone binary",
"path": "@semantic-release/exec",
"cmd": "echo '' > dist/STANDALONE"
},
{
"//": "build the alpine, macos, linux and windows binaries",
"path": "@semantic-release/exec",
"cmd": "npx pkg . -t node12-linux-x64,node12-macos-x64,node12-win-x64"
},
{
"//": "shasum all binaries",
"path": "@semantic-release/exec",
"cmd": "shasum -a 256 snyk-licenses-texts-linux > snyk-licenses-texts-linux.sha256 && shasum -a 256 snyk-licenses-texts-macos > snyk-licenses-texts-macos.sha256 && shasum -a 256 snyk-licenses-texts-win.exe > snyk-licenses-texts-win.exe.sha256"
},
{
"//": "removes the file we use to identify a build as a standalone binary",
"path": "@semantic-release/exec",
"cmd": "rm dist/STANDALONE"
}
],
"publish": [
"@semantic-release/npm",
{
"path": "@semantic-release/github",
"assets": [
{
"path": "./snyk-licenses-texts-linux",
"name": "snyk-licenses-texts-linux",
"label": "snyk-licenses-texts-linux"
},
{
"path": "./snyk-licenses-texts-linux.sha256",
"name": "snyk-licenses-texts-linux.sha256",
"label": "snyk-licenses-texts-linux.sha256"
},
{
"path": "./snyk-licenses-texts-macos",
"name": "snyk-licenses-texts-macos",
"label": "snyk-licenses-texts-macos"
},
{
"path": "./snyk-licenses-texts-macos.sha256",
"name": "snyk-licenses-texts-macos.sha256",
"label": "snyk-licenses-texts-macos.sha256"
},
{
"path": "./snyk-licenses-texts-win.exe",
"name": "snyk-licenses-texts-win.exe",
"label": "snyk-licenses-texts-win.exe"
},
{
"path": "./snyk-licenses-texts-win.exe.sha256",
"name": "snyk-licenses-texts-win.exe.sha256",
"label": "snyk-licenses-texts-win.exe.sha256"
}
]
}
],
"branches": ["master"]
}

0 comments on commit 01fa74a

Please sign in to comment.