Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
feat(release): Set up release-it for releasing (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour authored Jun 11, 2018
1 parent b34b49b commit 054a755
Show file tree
Hide file tree
Showing 3 changed files with 1,063 additions and 207 deletions.
9 changes: 9 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"requireUpstream": false,
"increment": "conventional:angular",
"src": {
"commitMessage": "chore(release): %s",
"beforeStartCommand": "npm run lint && npm run test -- --colors && npm run test:e2e -- --colors",
"afterReleaseCommand": "npm run release-templates"
}
}
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"lint:fix": "yarn lint --fix",
"format": "prettier --write *.{js,md,json}",
"release-templates": "node ./scripts/release-templates",
"release": "standard-version --tag-prefix '' && git push --follow-tags origin master && npm publish && conventional-github-releaser --preset angular && npm run release-templates",
"release:beta": "standard-version --prerelease beta --tag-prefix '' && git push --follow-tags origin master && npm publish --tag beta && conventional-github-releaser --preset angular && npm run release-templates"
"release": "release-it",
"release:beta": "release-it --preRelease=beta"
},
"files": [
"index.js",
Expand All @@ -45,7 +45,6 @@
},
"devDependencies": {
"babel-eslint": "^8.2.3",
"conventional-github-releaser": "^3.1.0",
"eslint": "^4.19.1",
"eslint-config-algolia": "^13.1.0",
"eslint-config-prettier": "^2.9.0",
Expand All @@ -56,7 +55,7 @@
"jest": "^23.0.1",
"jest-image-snapshot": "^2.4.2",
"prettier": "^1.13.2",
"standard-version": "^4.4.0",
"release-it": "^7.4.7",
"walk-sync": "^0.3.2"
},
"jest": {
Expand Down
Loading

0 comments on commit 054a755

Please sign in to comment.