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

feat(release): Use release-it for releasing #40

Merged
merged 4 commits into from
Jun 11, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
"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",
"release:test": "npm run release -- --dry-run",
"release:beta:test": "npm run release:beta -- --dry-run"
},
"files": [
"index.js",
Expand All @@ -45,7 +47,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 +57,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