chore: add release script (#3)
This commit is contained in:
parent
dff791d781
commit
bd1ccb659b
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
||||
cache: "yarn"
|
||||
|
||||
- name: Install deps
|
||||
run: yarn install
|
||||
run: yarn install --ignore-engines
|
||||
|
||||
- name: Lint
|
||||
run: yarn lint
|
||||
|
||||
55
package.json
55
package.json
@ -25,6 +25,7 @@
|
||||
"yargs": "^16.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@release-it/conventional-changelog": "^7.0.2",
|
||||
"@types/fs-extra": "^9.0.13",
|
||||
"@types/node": "^14.17.32",
|
||||
"@types/node-fetch": "^2.5.12",
|
||||
@ -41,6 +42,7 @@
|
||||
"eslint-plugin-import": "^2.25.2",
|
||||
"lint-staged": "^10.5.4",
|
||||
"prettier": "^2.4.1",
|
||||
"release-it": "^16.2.1",
|
||||
"rimraf": "^3.0.2",
|
||||
"simple-git-hooks": ">=2.7.0",
|
||||
"typescript": "^4.4.4"
|
||||
@ -54,7 +56,58 @@
|
||||
"start": "node lib-es5/bin.js",
|
||||
"applyPatches": "node lib-es5/apply-patches.js",
|
||||
"printHashes": "node lib-es5/print-hashes.js",
|
||||
"updateExpected": "node lib-es5/generate-expected-shas.js"
|
||||
"updateExpected": "node lib-es5/generate-expected-shas.js",
|
||||
"release": "read -p 'GITHUB_TOKEN: ' GITHUB_TOKEN && export GITHUB_TOKEN=$GITHUB_TOKEN && release-it"
|
||||
},
|
||||
"release-it": {
|
||||
"github": {
|
||||
"release": true
|
||||
},
|
||||
"git": {
|
||||
"tagName": "v${version}"
|
||||
},
|
||||
"hooks": {
|
||||
"before:init": [
|
||||
"yarn lint"
|
||||
]
|
||||
},
|
||||
"npm": {
|
||||
"publish": true
|
||||
},
|
||||
"plugins": {
|
||||
"@release-it/conventional-changelog": {
|
||||
"infile": "CHANGELOG.md",
|
||||
"preset": {
|
||||
"name": "conventionalcommits",
|
||||
"types": [
|
||||
{
|
||||
"type": "feat",
|
||||
"section": "Features"
|
||||
},
|
||||
{
|
||||
"type": "fix",
|
||||
"section": "Bug Fixes"
|
||||
},
|
||||
{
|
||||
"type": "test",
|
||||
"section": "Test added"
|
||||
},
|
||||
{
|
||||
"type": "refactor",
|
||||
"section": "Code refactoring"
|
||||
},
|
||||
{
|
||||
"type": "chore",
|
||||
"section": "Chores"
|
||||
},
|
||||
{
|
||||
"type": "docs",
|
||||
"section": "Documentation"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"prettier": {
|
||||
"singleQuote": true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user