Skip to content

Commit

Permalink
ci: update commit script
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers committed Apr 5, 2022
1 parent f46e456 commit b5e6ed0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -220,3 +220,5 @@ tsc-multi.json.tpl
/plugin-dev-out/*-*
/original-plugin-raw/*-*
/plugin-dev-raw/*-*
/plugin-dev-out/xliff/
/original-plugin/xliff/
13 changes: 9 additions & 4 deletions scripts/git/build-commit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,33 @@ export default Bluebird.mapSeries([
{
const list = [
'./plugin-dev-out',
'./plugin-dev-raw',
] as const;

await lazyCommitFiles([
'./original-plugin',
'./original-plugin-raw',
], 'build(original): update original', {
addFlags: ['--all'],
});
}).catch(() => void 0);

await lazyCommitFiles([
'./lib/static',
'./lib/const/link-of-zh-cn.ts',
], 'build(cache): update cache', {
addFlags: ['--all'],
});
}).catch(() => void 0);

await lazyCommitFiles([
'./test/__snapshots__',
], 'build(test): update snapshots', {
addFlags: ['--all'],
});
}).catch(() => void 0);

await lazyCommitFiles([
'./plugin-dev-raw',
], 'build(release): update dev build files', {
addFlags: ['--all'],
}).catch(() => void 0);

return lazyCommitFiles(list, 'build(release): update build', {
addFlags: ['--all'],
Expand Down

0 comments on commit b5e6ed0

Please sign in to comment.