Skip to content

Commit

Permalink
chore: use vue-sfc-cli upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
2nthony authored and levy9527 committed Jun 10, 2019
1 parent 3f18917 commit eee678e
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 18 deletions.
33 changes: 20 additions & 13 deletions .grenrc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
module.exports = {
"dataSource": "prs",
"prefix": "",
"ignoreLabels": ["duplicate", "help wanted", "invalid", "question", "wontfix"],
"ignoreIssuesWith": ["duplicate", "help wanted", "invalid", "question", "wontfix"],
"onlyMilestones": false,
"changelogFilename": "CHANGELOG.md",
"template": {
"issue": "- {{name}} [{{text}}]({{url}})"
},
"groupBy": {
"✨ New Features:": ["enhancement"],
"🐛 Bug Fixes:": ["bug"]
}
dataSource: 'prs',
prefix: '',
ignoreLabels: ['duplicate', 'help wanted', 'invalid', 'question', 'wontfix'],
ignoreIssuesWith: [
'duplicate',
'help wanted',
'invalid',
'question',
'wontfix'
],
onlyMilestones: false,
changelogFilename: 'CHANGELOG.md',
template: {
issue: '- {{name}} [{{text}}]({{url}})',
group: '\n### {{heading}}\n'
},
groupBy: {
'✨ New Features:': ['enhancement'],
'🐛 Bug Fixes:': ['bug']
}
}
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ script:
- ./build.sh
after_success:
- GREN_GITHUB_TOKEN=$GITHUB_TOKEN yarn release
- sleep 3 && ./notify.sh
after_script:
- ./notify.sh
cache: yarn
deploy:
- provider: pages
Expand Down
17 changes: 14 additions & 3 deletions notify.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
#!/bin/sh
if [ "$TRAVIS_TEST_RESULT" != "0" ]
then
echo "build not success, bye"
exit 1
fi

url=https://api.github.com/repos/FEMessage/el-data-table/releases/latest
html_url=`curl $url | sed -n 5p | sed 's/\"html_url\"://g' | awk -F '"' '{print $2}'`
body=`curl $url | grep body | sed 's/\"body\"://g;s/\"//g'`
resp_tmp_file=resp.tmp

curl -H "Authorization: token $GITHUB_TOKEN" $url > $resp_tmp_file

html_url=`cat $resp_tmp_file | sed -n 5p | sed 's/\"html_url\"://g' | awk -F '"' '{print $2}'`
body=`cat $resp_tmp_file | grep body | sed 's/\"body\"://g;s/\"//g'`

msg='{"msgtype": "markdown", "markdown": {"title": "新版本发布", "text": "@所有人\n# ['$html_url']('$html_url')\n'$body'"}}'
msg='{"msgtype": "markdown", "markdown": {"title": "el-data-table更新", "text": "@所有人\n# [el-data-table]('$html_url')\n'$body'"}}'

curl -X POST https://oapi.dingtalk.com/robot/send\?access_token\=$DINGTALK_ROBOT_TOKEN -H 'Content-Type: application/json' -d "$msg"

rm $resp_tmp_file
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"vue-template-compiler": "^2.5.16",
"webpack": "^4.29.6"
},
"vue-sfc-cli": "1.6.0",
"vue-sfc-cli": "1.10.0",
"engines": {
"node": ">= 4.0.0",
"npm": ">= 3.0.0"
Expand Down

0 comments on commit eee678e

Please sign in to comment.