UNPKG
npub
Version:
latest (2.2.0)
2.2.0
2.1.0
2.0.1
2.0.0
1.1.1
1.1.0
1.0.0
0.5.1
0.5.0
0.4.0
0.3.0
0.2.0
0.1.0
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
publishing tool for your node projects hosted on github
npub
/
src
/
publish
/
commit-changes.coffee
14 lines
(9 loc)
•
292 B
text/coffeescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
debug
=
require
(
'debug'
)
'commit-changes'
module
.exports = (git, version, callback) ->
debug
"v#{version}"
git.commit
"v#{version}"
, (success) ->
debug
"status: #{success}"
if
!success console.
error
'[npub] failed to commit changes'
process.
exit
(
1
) callback()