Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
' You can manually configure CircleCI through these two steps:'
);
print(
' > Basic setup: https://github.com/algolia/shipjs/blob/master/GUIDE.md#automate-part-3-shipjs-trigger-on-your-ci'
);
print(
' > Schedule your release: https://github.com/algolia/shipjs/blob/master/GUIDE.md#schedule-your-release'
);
};
}
const content = getConfig({
baseBranch,
schedulePrepare,
cronExpr,
gitUserName: getGitConfig('user.name') || 'Your Name',
gitUserEmail: getGitConfig('user.email') || 'your@email.com',
});
if (dryRun) {
print(`.circleci/config.yml`);
print(content);
} else {
mkdirp.sync(path.dirname(filePath));
fs.writeFileSync(filePath, content);
}
return () => {
print(`${info('✔')} Created \`.circleci/config.yml\`.`);
print(' You still need to finish setting up at CircleCI.');
print(
' > https://github.com/algolia/shipjs/blob/master/GUIDE.md#automate-part-3-shipjs-trigger-on-your-ci'
);
};
}
() => {
const gitUserName = getGitConfig('user.name') || 'Your Name';
const gitUserEmail = getGitConfig('user.email') || 'your@email.com';
const log = [
createGitHubAction({
content: getBaseConfig({ releaseBranch }),
actionPath: '.github/workflows/shipjs-trigger.yml',
dir,
dryRun,
}),
manualPrepare &&
createGitHubAction({
content: getManualPrepareConfig({
baseBranch,
gitUserName,
gitUserEmail,
}),
print(
' You can manually configure CircleCI through these two steps:'
);
print(
' > Basic setup: https://github.com/algolia/shipjs/blob/master/GUIDE.md#automate-part-3-shipjs-trigger-on-your-ci'
);
print(
' > Schedule your release: https://github.com/algolia/shipjs/blob/master/GUIDE.md#schedule-your-release'
);
};
}
const content = getConfig({
baseBranch,
schedulePrepare,
cronExpr,
gitUserName: getGitConfig('user.name') || 'Your Name',
gitUserEmail: getGitConfig('user.email') || 'your@email.com',
});
if (dryRun) {
print(`.circleci/config.yml`);
print(content);
} else {
mkdirp.sync(path.dirname(filePath));
fs.writeFileSync(filePath, content);
}
return () => {
print(`${info('✔')} Created \`.circleci/config.yml\`.`);
print(' You still need to finish setting up at CircleCI.');
print(
' > https://github.com/algolia/shipjs/blob/master/GUIDE.md#automate-part-3-shipjs-trigger-on-your-ci'
);
};
() => {
const gitUserName = getGitConfig('user.name') || 'Your Name';
const gitUserEmail = getGitConfig('user.email') || 'your@email.com';
const log = [
createGitHubAction({
content: getBaseConfig({ releaseBranch }),
actionPath: '.github/workflows/shipjs-trigger.yml',
dir,
dryRun,
}),
manualPrepare &&
createGitHubAction({
content: getManualPrepareConfig({
baseBranch,
gitUserName,
gitUserEmail,
}),
actionPath: '.github/workflows/shipjs-manual-prepare.yml',