We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0beb87c commit 5d0ecf9Copy full SHA for 5d0ecf9
build/tasks.ts
@@ -217,7 +217,11 @@ export async function publishToRepo(config: Config) {
217
await process.chdir(`${REPO_DIR}`);
218
await util.git([`init`]);
219
await util.git([`remote add origin ${REPO_URL}`]);
220
+ await util.git(['fetch origin master --depth=1']);
221
+ await util.git(['checkout origin/master']);
222
+ await util.git(['checkout -b master']);
223
await process.chdir('../../');
224
+ await util.cmd('rm -rf', [`${REPO_DIR}/*`]);
225
await util.cmd('cp', [`-R ${SOURCE_DIR}/* ${REPO_DIR}/`]);
226
227
await util.git([`config user.name "${COMMITTER_USER_NAME}"`]);
0 commit comments