Skip to content

Commit

Permalink
chore: add release-it for creating & releasing new versions
Browse files Browse the repository at this point in the history
- replace deprecated `standard-version` with [`release-it`](https://github.com/release-it/release-it)
  • Loading branch information
ghiscoding committed Oct 16, 2022
1 parent d992286 commit 982183d
Show file tree
Hide file tree
Showing 5 changed files with 1,424 additions and 100 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ yarn-error.log
**/junit.xml
**/test-report.xml
**/testresult.xml

# Environment variables
.env
24 changes: 24 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"git": {
"commitMessage": "chore: release v${version}"
},
"github": {
"release": true
},
"hooks": {
"before:init": [
"npm run lint"
],
"after:bump": "npm run build",
"after:git:release": "echo After git push, before GitHub Release",
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
},
"plugins": {
"@release-it/conventional-changelog": {
"header": "# Change Log \n\nAll notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.",
"preset": "angular",
"ignoreRecommendedBump": true,
"infile": "CHANGELOG.md"
}
}
}
10 changes: 2 additions & 8 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,9 @@
"problemMatcher": []
},
{
"label": "Prepare Release as Minor (0.x.0)",
"label": "Release new Version (prompt)",
"type": "shell",
"command": "yarn run release -- --release-as minor --infile ./CHANGELOG.md",
"problemMatcher": []
},
{
"label": "Prepare Release as Patch (0.0.x)",
"type": "shell",
"command": "yarn run release -- --release-as patch --infile ./CHANGELOG.md",
"command": "npm run release",
"problemMatcher": []
}
]
Expand Down
16 changes: 5 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,14 @@
"build:with-e2e": "npm-run-all build cypress:ci",
"copy-asset-lib": "cross-env copyfiles --up 2 src/assets/lib/** dist",
"copy-i18n:dist": "cross-env copyfiles --up 3 src/assets/i18n/**/*.* dist/i18n",
"release": "standard-version",
"start:dev": "webpack serve --env development",
"cypress": "cd test/cypress && node node_modules/cypress/bin/cypress open",
"cypress:ci": "cd test/cypress && npm run cypress:ci",
"test:ci": "npx jest --runInBand --coverage=true --ci --config ./test/jest.config.js",
"test:jest": "npx jest --watch --detectOpenHandles --config test/jest.config.js",
"test:jest:coverage": "npx jest --detectOpenHandles --runInBand --coverage --config test/jest.config.js"
"test:jest:coverage": "npx jest --detectOpenHandles --runInBand --coverage --config test/jest.config.js",
"preview:release": "release-it --dry-run",
"release": "release-it"
},
"dependencies": {
"@slickgrid-universal/common": "~1.4.0",
Expand All @@ -73,6 +74,7 @@
"@faker-js/faker": "^7.6.0",
"@fnando/sparkline": "^0.3.10",
"@popperjs/core": "^2.11.6",
"@release-it/conventional-changelog": "^5.1.1",
"@slickgrid-universal/composite-editor-component": "~1.4.0",
"@slickgrid-universal/custom-tooltip-plugin": "~1.4.0",
"@slickgrid-universal/excel-export": "~1.4.0",
Expand Down Expand Up @@ -129,11 +131,11 @@
"moment-mini": "^2.29.4",
"npm-run-all": "^4.1.5",
"promise-polyfill": "^8.2.3",
"release-it": "^15.5.0",
"rimraf": "^3.0.2",
"rxjs": "^7.5.7",
"sass": "^1.55.0",
"sass-loader": "^13.1.0",
"standard-version": "^9.5.0",
"style-loader": "3.3.1",
"ts-jest": "^29.0.3",
"ts-loader": "^9.4.1",
Expand All @@ -153,13 +155,5 @@
"aurelia-slickgrid/aurelia-slickgrid"
]
}
},
"standard-version": {
"skip": {
"bump": false,
"changelog": false,
"commit": false,
"tag": false
}
}
}
Loading

0 comments on commit 982183d

Please sign in to comment.