diff --git a/README.md b/README.md index 84531cf..206b0de 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ npx releaser [command] [options] ## Quickstart In any git based project, run: ```sh -releaser release -l patch -m "fix: something" -m "feat: a new feature." +releaser release -l patch -m "fixed something" -m "fixed something else" ``` This command validates your codebase first, runs interactive configuration wizard if there is no configuration defined, commit+tag+push your changes and calls relevant hooks while doing all of this. @@ -178,7 +178,7 @@ releaser --help ![Sample output of help command.](assets/releaser-help.gif) ## Contributing -If you're interested in contributing, read the [CONTRIBUTING.md](muratgozel/CONTRIBUTING.md) first, please. +If you're interested in contributing, read the [CONTRIBUTING.md](muratgozel/muratgozel/CONTRIBUTING.md) first, please. --- diff --git a/cli/actions/push.js b/cli/actions/push.js index 544c620..8551780 100644 --- a/cli/actions/push.js +++ b/cli/actions/push.js @@ -48,7 +48,7 @@ export default async function push(opts, command) { } } - if (!opts.noEvents) await events.emit('beforePush') + await events.emit('beforePush') if (!spinner) spinner = ora({text: `Pushing changes`, color: 'cyan', indent: 2}).start() else spinner.start(`Pushing changes`) @@ -59,5 +59,5 @@ export default async function push(opts, command) { } spinner.succeed(`Pushing changes`) - if (!opts.noEvents) await events.emit('afterPush') + await events.emit('afterPush') } \ No newline at end of file diff --git a/cli/index.js b/cli/index.js index 15d9a24..8c53e13 100755 --- a/cli/index.js +++ b/cli/index.js @@ -62,7 +62,6 @@ program.command('push') .option('-a, --auto-configure', 'Creates configuration file automatically by looking at the codebase, this option disables any user input in check phase.', false) .option('-p, --project-path ', 'Specify different project path. It is where command executed by default.') .option('--prefer-config ', 'Preferred location for the releaser config, only taken into account with auto-configure', '.releaser.json') - .option('-ne, --no-events', 'Do not trigger any events such as github/npm/docker releases.', false) .hook('preAction', preAction) .action(push) diff --git a/package-lock.json b/package-lock.json index ea3a51c..f024122 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "node-releaser", - "version": "v2.0.0", + "version": "v2.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "node-releaser", - "version": "v2.0.0", + "version": "v2.1.0", "license": "MIT", "dependencies": { "ajv": "^8.11.0", @@ -1129,9 +1129,9 @@ } }, "node_modules/node-releaser": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/node-releaser/-/node-releaser-2.0.0.tgz", - "integrity": "sha512-vboI/GRIBVCd9DLI1uWJ/nnOo6kHJT8ScdACuAop5ctXOceUadZR22Ql5JyRs7WiBtvZkAcS3DzJf6zhlG6IMw==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/node-releaser/-/node-releaser-2.1.0.tgz", + "integrity": "sha512-UPZCg/2jHMK58YZOQQ11DBQAzhD3a4HZ2MB+GHe3zTu5N+Q/0CMwtxa1gP4Wi/pfnGC1dXfhBguWtijyxLg2oA==", "dev": true, "dependencies": { "ajv": "^8.11.0", @@ -2277,9 +2277,9 @@ } }, "node-releaser": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/node-releaser/-/node-releaser-2.0.0.tgz", - "integrity": "sha512-vboI/GRIBVCd9DLI1uWJ/nnOo6kHJT8ScdACuAop5ctXOceUadZR22Ql5JyRs7WiBtvZkAcS3DzJf6zhlG6IMw==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/node-releaser/-/node-releaser-2.1.0.tgz", + "integrity": "sha512-UPZCg/2jHMK58YZOQQ11DBQAzhD3a4HZ2MB+GHe3zTu5N+Q/0CMwtxa1gP4Wi/pfnGC1dXfhBguWtijyxLg2oA==", "dev": true, "requires": { "ajv": "^8.11.0", diff --git a/package.json b/package.json index d27f798..abe7edd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-releaser", - "version": "v2.1.0", + "version": "v2.1.1", "description": "Software versioning, releasing and publishing tool.", "main": "src/index.js", "type": "module",