Skip to content

Commit

Permalink
build: build production v1.1.1 at 2021-03-06 12:55:20
Browse files Browse the repository at this point in the history
  • Loading branch information
纳兹 committed Mar 6, 2021
1 parent 298dd7f commit 29168c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jzone/react-request-hook",
"version": "1.0.3",
"version": "1.1.1",
"description": "🐶 React hook for custom request,compatible with various lib, support redux",
"main": "index.js",
"author": "zhixiaoqiang",
Expand Down
9 changes: 5 additions & 4 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ const dayJS = require('dayjs')
const version = process.env.VERSION

await execa('git', ['add', '-A'], { stdout: 'inherit' })

await execa(
'git',
['commit', '-am', `build: build production v${version} at ${dayJS().format('YYYY-MM-DD hh:mm:ss')}`],
'npm',
['version', version, '-am', `chore: update version with tag v${version}`, '--no-git-tag-version'],
{ stdout: 'inherit' }
)

await execa(
'npm',
['version', version, '-m', `chore: update version with tag v${version}`, '--no-git-tag-version'],
'git',
['commit', '-am', `build: build production v${version} at ${dayJS().format('YYYY-MM-DD hh:mm:ss')}`],
{ stdout: 'inherit' }
)

Expand Down

0 comments on commit 29168c3

Please sign in to comment.