Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
bd7a4252
Commit
bd7a4252
authored
Nov 18, 2016
by
qingwei.li
Committed by
Leopoldthecoder
Nov 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix release script
parent
fe44366f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
7 deletions
+26
-7
build/git-release.sh
build/git-release.sh
+19
-0
build/release.sh
build/release.sh
+6
-6
package.json
package.json
+1
-1
No files found.
build/git-release.sh
0 → 100644
View file @
bd7a4252
#!/usr/bin/env sh
git checkout dev
if
test
-n
"
$(
git status
--porcelain
)
"
;
then
echo
'Unclean working tree. Commit or stash changes first.'
>
&2
;
exit
128
;
fi
if
!
git fetch
--quiet
2>/dev/null
;
then
echo
'There was a problem fetching your branch. Run `git fetch` to see more...'
>
&2
;
exit
128
;
fi
if
test
"0"
!=
"
$(
git rev-list
--count
--left-only
@
'{u}'
...HEAD
)
"
;
then
echo
'Remote history differ. Please pull changes.'
>
&2
;
exit
128
;
fi
echo
'No conflicts.'
>
&2
;
build/release.sh
View file @
bd7a4252
git checkout dev
git pull eleme dev
--rebase
git checkout master
git merge dev
#!/usr/bin/env sh
set
-e
echo
"Enter release version: "
read
VERSION
...
...
@@ -29,7 +25,11 @@ then
npm version
$VERSION
--message
"[release]
$VERSION
"
# publish
git push eleme refs/tags/v
$VERSION
git push eleme dev
git checkout master
git merge dev
git push eleme master
git push eleme refs/tags/v
$VERSION
npm publish
fi
package.json
View file @
bd7a4252
...
...
@@ -22,7 +22,7 @@
"dist:all"
:
"node build/bin/build-all.js && npm run build:theme"
,
"i18n"
:
"node build/bin/i18n.js"
,
"lint"
:
"eslint src/**/* test/**/* packages/**/*.{js,vue} build/**/* --quiet"
,
"pub"
:
"sh build/release.sh"
,
"pub"
:
"sh build/
git-release.sh && sh build/
release.sh"
,
"pub:all"
:
"npm run dist:all && lerna publish"
,
"test"
:
"npm run lint && CI_ENV=/dev/ karma start test/unit/karma.conf.js --single-run"
,
"test:watch"
:
"karma start test/unit/karma.conf.js"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment