FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node-inspector/tools/release.sh at master · extended-debug/node-inspector · GitHub
extended-debug
node-inspector
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node-inspector
/
tools
/
release.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
58 lines (41 loc) · 1007 Bytes
Breadcrumbs
node-inspector
/
tools
/
release.sh
Copy path
File metadata and controls
executable file
·
58 lines (41 loc) · 1007 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!
/bin/bash
set
-e
VERSION=
${1
:?
version is mandatory}
TAG=v
${VERSION}
PREPUBLISH=true
VERIFY=true
while
[
"
$1
"
!=
"
"
]
;
do
case
$1
in
-f | --forse | --no-verify )
VERIFY=false
;;
-p | --publish )
PREPUBLISH=false
;;
esac
shift
done
echo
--RELEASE
$VERSION
AS TAG
$TAG
--
if
$PREPUBLISH
;
then
if
$VERIFY
;
then
echo
--Pull remote changes--
git pull
echo
--Reinstall all dependencies--
rm -rf node_modules
&&
npm install
echo
--Run the tests--
npm
test
fi
echo
--Update the version
in
package.json--
npm version --git-tag-version=false
"
$VERSION
"
echo
--Update ChangeLog.md--
tools/git-changelog.sh -t
"
$VERSION
"
echo
--Commit the changes--
git commit -m
"
$VERSION
"
ChangeLog.md package.json
echo
--Tag the release--
tools/git-changelog.sh -l -t
"
$VERSION
"
|
git tag -a
"
$TAG
"
-F-
fi
echo
--Push to github--
git push
&&
git push origin
"
$TAG
"
echo
--Publish to npmjs.org--
npm publish
echo
--RELEASED
$VERSION
--
Back
|
FazBrowse Home
|
New Git URL