2020-02-17 22:55:09 +02:00
|
|
|
const gulp = require('gulp');
|
2020-11-05 18:58:23 +02:00
|
|
|
const utils = require('./packages/tools/gulp/utils');
|
2020-02-17 22:55:09 +02:00
|
|
|
|
2020-02-21 00:59:18 +02:00
|
|
|
const tasks = {
|
2020-11-05 18:58:23 +02:00
|
|
|
updateIgnoredTypeScriptBuild: require('./packages/tools/gulp/tasks/updateIgnoredTypeScriptBuild'),
|
2021-09-04 14:43:25 +02:00
|
|
|
buildCommandIndex: require('./packages/tools/gulp/tasks/buildCommandIndex'),
|
2020-11-05 18:58:23 +02:00
|
|
|
completePublishAll: {
|
|
|
|
fn: async () => {
|
2021-11-03 13:15:51 +02:00
|
|
|
|
2020-12-14 16:55:31 +02:00
|
|
|
await utils.execCommandVerbose('git', ['add', '-A']);
|
|
|
|
await utils.execCommandVerbose('git', ['commit', '-m', 'Releasing sub-packages']);
|
2021-11-03 13:15:51 +02:00
|
|
|
|
|
|
|
// Lerna does some unnecessary auth check that doesn't work with
|
|
|
|
// automation tokens, thus the --no-verify-access. Automation token
|
|
|
|
// is still used for access when publishing even with this flag
|
|
|
|
// (publishing would fail otherwise).
|
|
|
|
// https://github.com/lerna/lerna/issues/2788
|
|
|
|
await utils.execCommandVerbose('lerna', ['publish', 'from-package', '-y', '--no-verify-access']);
|
|
|
|
|
2020-12-14 16:55:31 +02:00
|
|
|
await utils.execCommandVerbose('git', ['push']);
|
2020-11-05 18:58:23 +02:00
|
|
|
},
|
|
|
|
},
|
2020-02-17 22:55:09 +02:00
|
|
|
};
|
|
|
|
|
2020-08-01 15:48:56 +02:00
|
|
|
utils.registerGulpTasks(gulp, tasks);
|