mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
chore(ci): improved logging; (#5451)
This commit is contained in:
@@ -32,13 +32,13 @@ jobs:
|
|||||||
node-version: 16
|
node-version: 16
|
||||||
cache: npm
|
cache: npm
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- name: release
|
- name: Prepare release
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
TYPE_ARG: ${{ fromJSON('{"auto":"", "patch":"--patch", "minor":"--minor", "major":"--major"}')[github.event.inputs.type] }}
|
TYPE_ARG: ${{ fromJSON('{"auto":"", "patch":"--patch", "minor":"--minor", "major":"--major"}')[github.event.inputs.type] }}
|
||||||
BETA_ARG: ${{ github.event.inputs.beta == 'true' && '--preRelease=beta' || '' }}
|
BETA_ARG: ${{ github.event.inputs.beta == 'true' && '--preRelease=beta' || '' }}
|
||||||
run: npm run release -- --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github $TYPE_ARG $BETA_ARG $DRY_ARG
|
run: npm run release -- --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github $TYPE_ARG $BETA_ARG $DRY_ARG
|
||||||
- name: Add contributors CHANGELOG.md
|
- name: Add contributors list to CHANGELOG.md
|
||||||
run: npm run release:changelog:fix
|
run: npm run release:changelog:fix
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ const getUserInfo = ((userCache) => async (userEntry) => {
|
|||||||
return userCache[email];
|
return userCache[email];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(`fetch github user info [${userEntry.name}]`);
|
||||||
|
|
||||||
return userCache[email] = {
|
return userCache[email] = {
|
||||||
...userEntry,
|
...userEntry,
|
||||||
...await getUserFromCommit(commits[0])
|
...await getUserFromCommit(commits[0])
|
||||||
|
|||||||
@@ -30,13 +30,17 @@ const injectContributors = async (infile, injector) => {
|
|||||||
|
|
||||||
if(currentTag) {
|
if(currentTag) {
|
||||||
if (hasContributorsSection) {
|
if (hasContributorsSection) {
|
||||||
console.log(`[${currentTag}]: found contribution section`);
|
console.log(`[${currentTag}]: ✓ OK`);
|
||||||
} else {
|
} else {
|
||||||
|
console.log(`[${currentTag}]: ❌ MISSED`);
|
||||||
|
console.log(`Generating contributors list...`);
|
||||||
|
|
||||||
const section = await injector(currentTag);
|
const section = await injector(currentTag);
|
||||||
|
|
||||||
console.log(`[${currentTag}]: contribution section not found. Adding...`);
|
console.log(`\nRENDERED CONTRIBUTORS LIST [${currentTag}]:`);
|
||||||
|
console.log('-------------BEGIN--------------\n');
|
||||||
console.log(section);
|
console.log(section);
|
||||||
|
console.log('--------------END---------------\n');
|
||||||
|
|
||||||
return section + match;
|
return section + match;
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-8
@@ -1,12 +1,10 @@
|
|||||||
{{#if files}}
|
{{#if files}}
|
||||||
|
### Build info
|
||||||
|
|
||||||
### Build info
|
{{#each files}}
|
||||||
|
- {{ name}} ({{ path }}) {{ filesize size }} (**{{ filesize gzip }}** gzipped)
|
||||||
{{#each files}}
|
{{#each commits}}
|
||||||
- {{ name}} ({{ path }}) {{ filesize size }} ({{ filesize gzip }} gzipped)
|
- {{ tag }} - {{filesize size}}
|
||||||
{{#each commits}}
|
|
||||||
- {{ tag }} - {{filesize size}}
|
|
||||||
{{/each}}
|
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
{{/each}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|||||||
Reference in New Issue
Block a user