onjs 2.3.1 → 2.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,6 +6,8 @@ on:
6
6
  branches:
7
7
  - master
8
8
  pull_request:
9
+ branches:
10
+ - '**'
9
11
  release:
10
12
  types: [published]
11
13
 
@@ -19,7 +21,9 @@ concurrency:
19
21
  cancel-in-progress: true
20
22
 
21
23
  jobs:
22
- test-and-build:
24
+ test:
25
+ # This job runs on pull requests and push to master branch
26
+ if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/master')
23
27
  runs-on: ubuntu-latest
24
28
  container: node:16-bullseye
25
29
  services:
@@ -63,6 +67,28 @@ jobs:
63
67
  run: npm test
64
68
 
65
69
  - run: echo "Job's status is ${{ job.status }}."
70
+
71
+ publish:
72
+ needs: test
73
+ # This job runs on push to master branch
74
+ if: github.event_name == 'push' && github.ref == 'refs/heads/master'
75
+ runs-on: ubuntu-latest
76
+
77
+ steps:
78
+ - run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
79
+ - name: Check out repository code
80
+ uses: actions/checkout@v4
81
+
82
+ - run: echo "The ${{ github.repository }} repository has been cloned to the runner."
83
+ - run: echo "The workflow is now ready to build your code on the runner."
84
+
85
+ # Setup .npmrc file to publish to npm
86
+ - uses: actions/setup-node@v4
87
+ with:
88
+ node-version: '20.x'
89
+ registry-url: 'https://registry.npmjs.org'
90
+
91
+ - run: echo "Job's status is ${{ job.status }}."
66
92
 
67
93
  - name: Publishing to NPM
68
94
  run: npm publish --provenance --access public
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onjs",
3
- "version": "2.3.1",
3
+ "version": "2.3.4",
4
4
  "description": "On.js is an event library based on RabbitMQ that helps you control events on a microservices arquitecture",
5
5
  "main": "index.js",
6
6
  "scripts": {