Skip to content

Commit

Permalink
removed --no-events flag
Browse files Browse the repository at this point in the history
updated readme
  • Loading branch information
muratgozel committed Jun 21, 2023
1 parent 98f2b0e commit fa0367f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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.

---

Expand Down
4 changes: 2 additions & 2 deletions cli/actions/push.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand All @@ -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')
}
1 change: 0 additions & 1 deletion cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <path>', 'Specify different project path. It is where command executed by default.')
.option('--prefer-config <loc>', '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)

Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit fa0367f

Please sign in to comment.