onjs 2.3.1 → 2.3.3

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,27 @@ jobs:
63
67
  run: npm test
64
68
 
65
69
  - run: echo "Job's status is ${{ job.status }}."
70
+
71
+ build-and-publish:
72
+ # This job runs on push to master branch
73
+ if: github.event_name == 'push' && github.ref == 'refs/heads/master'
74
+ runs-on: ubuntu-latest
75
+
76
+ steps:
77
+ - run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
78
+ - name: Check out repository code
79
+ uses: actions/checkout@v4
80
+
81
+ - run: echo "The ${{ github.repository }} repository has been cloned to the runner."
82
+ - run: echo "The workflow is now ready to build your code on the runner."
83
+
84
+ # Setup .npmrc file to publish to npm
85
+ - uses: actions/setup-node@v4
86
+ with:
87
+ node-version: '20.x'
88
+ registry-url: 'https://registry.npmjs.org'
89
+
90
+ - run: echo "Job's status is ${{ job.status }}."
66
91
 
67
92
  - name: Publishing to NPM
68
93
  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.3",
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": {