-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from snyk-tech-services/feat/releaserc
feat: add releaserc
- Loading branch information
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
} |