From 001ee9d4a13cc875060cb7ccdf61eb11bf762878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Mon, 15 Oct 2018 11:29:07 +0800 Subject: [PATCH] [build] update release.sh --- build/release.sh | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build/release.sh b/build/release.sh index 7c72a3fd..931b701f 100644 --- a/build/release.sh +++ b/build/release.sh @@ -14,6 +14,7 @@ then npm run build:lib if [[ `git status --porcelain` ]]; then + git add -A git commit -am "[build] $VERSION" fi diff --git a/package.json b/package.json index bc1376f2..7dcdff74 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "dev": "node build/dev.js", "lint": "eslint ./packages --ext .js", "release": "sh build/release.sh", - "build:lib": "rm -rf dist && NODE_ENV=production node build/compiler.js", + "build:lib": "yarn && rm -rf dist && NODE_ENV=production node build/compiler.js", "build:site": "rm -rf docs/dist && cross-env NODE_ENV=production webpack --config build/webpack.doc.prd.js && gh-pages -d docs/dist", "build:changelog": "vant-doc changelog --tag v0.3.0 ./docs/dist/changelog.md" },