Skip to content

Commit 390a793

Browse files
feat: update readme + auto deploy
1 parent 50e2c8a commit 390a793

File tree

7 files changed

+2672
-28
lines changed

7 files changed

+2672
-28
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @Sebastian-Iwanczyszyn

.github/workflows/pr-title-check.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: PR Title check
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited, synchronize]
6+
7+
permissions:
8+
pull-requests: read
9+
contents: read
10+
11+
jobs:
12+
enforce-pr-title:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Ensure PR Title is Conventional Commit
16+
uses: amannn/action-semantic-pull-request@v5
17+
with:
18+
types: |
19+
feat
20+
fix
21+
chore
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
issues: write
11+
pull-requests: write
12+
13+
jobs:
14+
release:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 23
25+
registry-url: 'https://registry.npmjs.org/'
26+
27+
- name: Install dependencies
28+
run: npm i
29+
30+
- name: Build library
31+
run: npm run build
32+
33+
- name: Release
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
run: npx semantic-release
38+

.releaserc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"branches": ["main"],
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
[
6+
"@semantic-release/npm",
7+
{
8+
"npmPublish": true
9+
}
10+
],
11+
"@semantic-release/github"
12+
]
13+
}

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66

77
A NestJS library for managing asynchronous and synchronous messages with support for buses, handlers, channels, and consumers. This library simplifies building scalable and decoupled applications by facilitating robust message handling pipelines while ensuring flexibility and reliability.
88

9+
---
10+
## Documentation
11+
12+
https://nestjstools.gitbook.io/nestjstools-messaging-docs
13+
14+
---
15+
916
## Installation
1017

1118
```bash

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,14 @@
4848
"test:e2e": "jest --config ./test/jest-e2e.json"
4949
},
5050
"dependencies": {
51-
"bullmq": "^5.52.2"
51+
"@semantic-release/github": "^11.0.3",
52+
"bullmq": "^5.52.2",
53+
"semantic-release": "^24.2.5"
5254
},
5355
"peerDependencies": {
54-
"@nestjstools/messaging": "^2.X",
5556
"@nestjs/common": "^10.x||^11.x",
5657
"@nestjs/core": "^10.x||^11.x",
58+
"@nestjstools/messaging": "^2.X",
5759
"reflect-metadata": "^0.2.0",
5860
"rxjs": "^7.x"
5961
},

0 commit comments

Comments
 (0)