@lad-tech/nsc-toolkit 1.4.0 → 1.5.0

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.
@@ -1,7 +1,6 @@
1
- name: Publish Package to npmjs
1
+ name: Main workflow
2
2
  on:
3
- push:
4
- branches: [ main ]
3
+ push
5
4
  env:
6
5
  GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7
6
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -19,15 +18,21 @@ jobs:
19
18
  node-version: ${{ matrix.node-version }}
20
19
  cache: 'npm'
21
20
  registry-url: 'https://registry.npmjs.org'
22
- - run: npm i
23
- - run: npm run build
24
- - run: npm run test
25
- - run: npx semantic-release
21
+ - name: Install deps
22
+ run: npm i
23
+ - name: Build
24
+ run: npm run build
25
+ - name: Test
26
+ run: npm run test
27
+ - name: Push to NPM
28
+ if: ${{github.ref == 'refs/heads/main'}}
29
+ run: npx semantic-release
26
30
  env:
27
31
  GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28
32
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
29
33
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
30
34
  - name: Coveralls
35
+ if: ${{github.ref == 'refs/heads/main'}}
31
36
  uses: coverallsapp/github-action@master
32
37
  with:
33
38
  github-token: ${{ secrets.GITHUB_TOKEN }}
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
- # [1.4.0](https://github.com/lad-tech/nsc-toolkit/compare/v1.3.0...v1.4.0) (2023-01-18)
1
+ # [1.5.0](https://github.com/lad-tech/nsc-toolkit/compare/v1.4.0...v1.5.0) (2023-01-18)
2
2
 
3
3
 
4
4
  ### Features
5
5
 
6
- * Библиотека покрыта тестами ([df5047e](https://github.com/lad-tech/nsc-toolkit/commit/df5047e3f868ecfdc6fc1ca5b60e07e0b7cded39))
6
+ * Объединенный CI ([eb097de](https://github.com/lad-tech/nsc-toolkit/commit/eb097de99f3d976ab2fd55c73c6e430ef4991d70))
package/README.md CHANGED
@@ -1,4 +1,6 @@
1
1
  [![Coverage Status](https://coveralls.io/repos/github/lad-tech/nsc-toolkit/badge.svg?branch=main)](https://coveralls.io/github/lad-tech/nsc-toolkit?branch=main)
2
+ [![Known Vulnerabilities](https://snyk.io/test/github/lad-tech/nsc-toolkit/badge.svg)](https://snyk.io/test/github/lad-tech/nsc-toolkit)
3
+ [![npm version](https://badge.fury.io/js/@lad-tech%2Fnsc-toolkit.svg)](https://badge.fury.io/js/@lad-tech%2Fnsc-toolkit)
2
4
 
3
5
  nsc-toolkit (NATS service creator toolkit) - это набор инструментов для создания сервис-ориентированная архитектуры вокруг брокера сообщений [NATS](https://nats.io/). Основная идеология тулкита - это простой инструмент с минимальным количеством зависимостей позволяющий создавать сервисы с помощью интсрументов кодогенерации на основе простого описания в JSON.
4
6
 
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1674035553734" clover="3.2.0">
3
- <project timestamp="1674035553734" name="All files">
2
+ <coverage generated="1674068082028" clover="3.2.0">
3
+ <project timestamp="1674068082028" name="All files">
4
4
  <metrics statements="530" coveredstatements="449" conditionals="280" coveredconditionals="195" methods="93" coveredmethods="83" elements="903" coveredelements="727" complexity="0" loc="530" ncloc="530" packages="3" files="11" classes="11"/>
5
5
  <package name="src">
6
6
  <metrics statements="502" coveredstatements="421" conditionals="280" coveredconditionals="195" methods="85" coveredmethods="75"/>
@@ -131,7 +131,7 @@
131
131
  <div class='footer quiet pad2 space-top1 center small'>
132
132
  Code coverage generated by
133
133
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
134
- at 2023-01-18T09:52:33.714Z
134
+ at 2023-01-18T18:54:42.009Z
135
135
  </div>
136
136
  <script src="prettify.js"></script>
137
137
  <script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lad-tech/nsc-toolkit",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Toolkit for create microservices around NATS",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -1,22 +0,0 @@
1
- name: Build and test
2
- on:
3
- push
4
- jobs:
5
- build:
6
- runs-on: ubuntu-latest
7
- strategy:
8
- matrix:
9
- node-version: [ 18.x ]
10
-
11
- steps:
12
- - uses: actions/checkout@v3
13
- - uses: actions/setup-node@v3
14
- with:
15
- node-version: ${{ matrix.node-version }}
16
- cache: 'npm'
17
- registry-url: 'https://registry.npmjs.org'
18
- - run: npm i
19
- - run: npm run build
20
- - run: npm run test
21
-
22
-