Skip to content

Commit

Permalink
Merge pull request #6 from ksv90/dev
Browse files Browse the repository at this point in the history
fix: release-please-action added
  • Loading branch information
ksv90 authored Feb 24, 2024
2 parents 03ed1de + eb30f86 commit c11a71b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 6 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release

on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: simple
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@

### **typed event emitter**

### to install, use the following (or similar package managers)
## to install run the following commands

```sh
npm install event-notifier
```bash
echo "\n@ksv90:registry=https://npm.pkg.github.com" >> ".npmrc"

npm install @ksv90/event-notifier
```

### after that you can use
> this tells the package manager what to look for in the GitHub registry.
## after that you can use

```ts
type Data = {
Expand All @@ -27,7 +31,7 @@ eventNotifier.notify({ type: 'test' });
eventNotifier.notify({ type: 'balance', value: 42 });
```

### data object
## data object

```ts
type Data = {
Expand All @@ -48,7 +52,7 @@ eventNotifier.on('balance', (data) => {
});
```

### erroneous statements
## erroneous statements

```ts
type Data = {
Expand Down

0 comments on commit c11a71b

Please sign in to comment.