Skip to content

Commit

Permalink
chore: update docs version after release
Browse files Browse the repository at this point in the history
  • Loading branch information
Pines-Cheng committed Aug 26, 2019
1 parent edbdbe7 commit 77e8812
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions build/docs-version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const cp = require('child_process')
const ora = require('ora')
const spinner = ora('Update Docs Version...').start()
const pkgJSON = require('../packages/taro/package.json')

cp.exec(`npm run docs:version ${pkgJSON.version}`, err => {
if (!err) {
spinner.succeed(`Update docs version to ${pkgJSON.version} successfully.`)
} else {
spinner.fail(err)
}
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
"release:lerna": "lerna publish --force-publish=* --exact --skip-temp-tag",
"release:beta": "lerna publish --force-publish=* --exact --skip-temp-tag --preid=beta --npm-tag=beta",
"release": "npm-run-all build release:lerna && npm run changelog",
"release": "npm-run-all build release:lerna && npm run changelog && node ./build/docs-version.js",
"test": "lerna run --scope eslint-plugin-taro --scope @tarojs/transformer-wx test"
},
"repository": {
Expand Down

0 comments on commit 77e8812

Please sign in to comment.