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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user