first commit
This commit is contained in:
16
node_modules/release-it/lib/plugin/github/prompts.js
generated
vendored
Normal file
16
node_modules/release-it/lib/plugin/github/prompts.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { format } from '../../util.js';
|
||||
|
||||
const message = context => {
|
||||
const { isPreRelease, github } = context;
|
||||
const { releaseName, update } = github;
|
||||
const name = format(releaseName, context);
|
||||
return `${update ? 'Update' : 'Create a'} ${isPreRelease ? 'pre-' : ''}release on GitHub (${name})?`;
|
||||
};
|
||||
|
||||
export default {
|
||||
release: {
|
||||
type: 'confirm',
|
||||
message,
|
||||
default: true
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user