Skip to content

Commit

Permalink
feat(standard-version): add prerelease hook (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Sep 13, 2019
1 parent 39a8d13 commit 9258362
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@
"prettier:check": "npm run prettier -- --check",
"prettier:write": "npm run prettier -- --write",
"format": "npm-run-all --print-label --parallel lint:*:fix prettier:write",
"release": "standard-version --sign",
"release:dry-run": "npm run release -- --dry-run"
"prerelease": "git checkout master && git pull origin master && npm ci && npm test",
"release": "standard-version",
"release:dry-run": "standard-version --dry-run"
},
"husky": {
"hooks": {
Expand All @@ -84,6 +85,7 @@
"trailingComma": "es5"
},
"standard-version": {
"sign": true,
"scripts": {
"postchangelog": "prettier --write CHANGELOG.md"
}
Expand Down
6 changes: 4 additions & 2 deletions test/fixtures/package-empty_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
"prettier:check": "npm run prettier -- --check",
"prettier:write": "npm run prettier -- --write",
"format": "npm-run-all --print-label --parallel lint:*:fix prettier:write",
"release": "standard-version --sign",
"release:dry-run": "npm run release -- --dry-run"
"prerelease": "git checkout master && git pull origin master && npm ci && npm test",
"release": "standard-version",
"release:dry-run": "standard-version --dry-run"
},
"husky": {
"hooks": {
Expand All @@ -27,6 +28,7 @@
"*.{css,html,js,json,jsx,md,mdx,mjs,scss,ts,tsx,yaml,yml}": ["prettier --write", "git add"]
},
"standard-version": {
"sign": true,
"scripts": {
"postchangelog": "prettier --write CHANGELOG.md"
}
Expand Down
6 changes: 4 additions & 2 deletions test/fixtures/package-normal_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
"prettier:check": "npm run prettier -- --check",
"prettier:write": "npm run prettier -- --write",
"format": "npm-run-all --print-label --parallel lint:*:fix prettier:write",
"release": "standard-version --sign",
"release:dry-run": "npm run release -- --dry-run"
"prerelease": "git checkout master && git pull origin master && npm ci && npm test",
"release": "standard-version",
"release:dry-run": "standard-version --dry-run"
},
"husky": {
"hooks": {
Expand All @@ -28,6 +29,7 @@
"*.{css,html,js,json,jsx,md,mdx,mjs,scss,ts,tsx,yaml,yml}": ["prettier --write", "git add"]
},
"standard-version": {
"sign": true,
"scripts": {
"postchangelog": "prettier --write CHANGELOG.md"
}
Expand Down

0 comments on commit 9258362

Please sign in to comment.