File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -64,15 +64,9 @@ if ! [[ "$VERSION" =~ ^([0-9]\.[0-9]\.[0-9]) ]]; then
64
64
fi
65
65
66
66
67
- # make sure tests pass
68
- if ! npm test ; then
69
- echo ' Tests failed... cannot create release'
70
- exit
71
- fi
72
-
73
67
# update package.json and package-lock.json
74
- if ! sed -i ' s/" version": "[^"]*"/" version": " ' $VERSION ' "/ ' package.json ; then
75
- echo ' version not replaced in package-lock.json '
68
+ if ! npm version --git-tag- version=false $VERSION ; then
69
+ echo ' Version not updated '
76
70
exit
77
71
fi
78
72
@@ -83,16 +77,16 @@ if ! npm run build; then
83
77
fi
84
78
85
79
86
- # make sure types are up-to-date
87
- if ! npm run build:types ; then
88
- echo ' types not generated '
80
+ # make sure tests pass
81
+ if ! npm test ; then
82
+ echo ' Tests failed... cannot create release '
89
83
exit
90
84
fi
91
85
92
86
93
87
# prompt before finalizing
94
88
if ! ask " Version $VERSION is ready for release. Are you sure?" ; then
95
- echo ' release aborted'
89
+ echo ' Release aborted'
96
90
exit
97
91
fi
98
92
You can’t perform that action at this time.
0 commit comments