chore: add release script (#3)

This commit is contained in:
Daniel Lando 2023-10-04 10:56:38 +02:00 committed by GitHub
parent dff791d781
commit bd1ccb659b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2080 additions and 34 deletions

View File

@ -26,7 +26,7 @@ jobs:
cache: "yarn"
- name: Install deps
run: yarn install
run: yarn install --ignore-engines
- name: Lint
run: yarn lint

View File

@ -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

2057
yarn.lock

File diff suppressed because it is too large Load Diff