2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-27 14:47:43 +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
+4 -2
View File
@@ -50,6 +50,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TYPE_ARG: ${{ fromJSON('{"auto":"", "patch":"--patch", "minor":"--minor", "major":"--major"}')[github.event.inputs.type] }}
BETA_ARG: ${{ github.event.inputs.beta == 'true' && '--preRelease=beta' || '' }}
NPM_ARG: ${{ github.event.inputs.npm == 'false' && '--no-npm' || '' }}
DRY_ARG: ${{ github.event.inputs.dry == 'true' && '--dry-run' || '' }}
run: npm run release -- --ci --verbose $NPM_ARG $TYPE_ARG $BETA_ARG $DRY_ARG
run: npm run release -- --ci --verbose $TYPE_ARG $BETA_ARG $DRY_ARG
- name: npm-release
if: ${{ github.event.inputs.dry == 'false' && github.event.inputs.npm == 'true' }}
run: npm publish