Skip to content

Commit 5822e9f

Browse files
committed
publish-brew
1 parent 7b457e0 commit 5822e9f

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
"verify-definitions": "scripty",
2121
"scrape-definitions": "nodenv update-version-defs --destination $PWD/share/node-build/",
2222
"submit-definitions": "scripty -r",
23-
"publish:brew": "brew-publish $npm_package_name v$npm_package_version",
23+
"publish": "scripty",
24+
"publish:brew": "scripty",
2425
"publish:github": "scripty",
2526
"preversion": "scripty",
26-
"postversion": "npm run publish:github && npm run publish:brew"
27+
"postversion": "npm publish"
2728
},
2829
"devDependencies": {
2930
"@nodenv/node-build-update-defs": "^2.2.0",

script/publish/brew

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env sh
2+
# Usage: script/publish/brew <name> <version>
3+
#
4+
# - opens PR to update version in homebrew
5+
6+
set -e
7+
8+
pkg_name=${1:-$npm_package_name}
9+
pkg_version=${2:-$npm_package_version}
10+
11+
brew-publish $pkg_name v$pkg_version

script/publish/github

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env sh
2-
# Usage: script/release-github <version>
2+
# Usage: script/publish/github <version>
33
#
44
# - creates a Release on github
55

0 commit comments

Comments
 (0)