2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-11 18:02:32 +03:00

chore(ci): fix release action;

* chore(ci): Add release-it script;
* fix(utils): redesigned logic for obtaining the global link;;
* chore(git): updated .gitignore;
chore(npm): updated .npmignore;
* chore(git): fix husky prepare script;
* chore(github): reworked npm release action step;
* chore(ci): add CHANGELOG.md contributors section generator;
* chore(deps): add `auto-changelog` to package.json;
This commit is contained in:
Dmitriy Mozgovoy
2022-12-20 20:45:24 +02:00
committed by GitHub
parent f12d01eed1
commit 46085e6ffc
10 changed files with 275 additions and 30 deletions
+8 -3
View File
@@ -41,12 +41,13 @@
"coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"fix": "eslint --fix lib/**/*.js",
"prepare": "husky install && npm run prepare:hooks",
"prepare:hooks": "npx husky add .husky/commit-msg \"npx commitlint --edit $1\"",
"prepare:hooks": "npx husky set .husky/commit-msg \"npx commitlint --edit $1\"",
"release:dry": "release-it --dry-run --no-npm",
"release:info": "release-it --release-version",
"release:beta:no-npm": "release-it --preRelease=beta --no-npm",
"release:beta": "release-it --preRelease=beta",
"release:no-npm": "release-it --no-npm",
"release:changelog:fix": "node ./bin/injectContributorsList.js",
"release": "release-it"
},
"repository": {
@@ -78,6 +79,7 @@
"@rollup/plugin-multi-entry": "^4.0.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"abortcontroller-polyfill": "^1.7.3",
"auto-changelog": "^2.4.0",
"body-parser": "^1.20.0",
"coveralls": "^3.1.1",
"cross-env": "^7.0.3",
@@ -90,6 +92,7 @@
"fs-extra": "^10.1.0",
"get-stream": "^3.0.0",
"gulp": "^4.0.2",
"handlebars": "^4.7.7",
"husky": "^8.0.2",
"istanbul-instrumenter-loader": "^3.0.1",
"jasmine-core": "^2.4.1",
@@ -113,6 +116,7 @@
"rollup-plugin-terser": "^7.0.2",
"sinon": "^4.5.0",
"stream-throttle": "^0.1.3",
"string-replace-async": "^3.0.2",
"terser-webpack-plugin": "^4.2.3",
"typescript": "^4.8.4",
"url-search-params": "^0.10.0"
@@ -160,7 +164,7 @@
"release": true
},
"npm": {
"publish": true,
"publish": false,
"ignoreVersion": false
},
"plugins": {
@@ -171,7 +175,8 @@
},
"hooks": {
"before:init": "npm test",
"after:bump": "gulp version --bump ${version} && npm run build && npm run test:build:version",
"after:bump": "gulp version --bump ${version} && npm run build && npm run test:build:version && git add ./dist",
"before:release": "npm run release:changelog:fix && git add CHANGELOG.md",
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
}
},