@pager/minion-army 2.0.0 → 2.1.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.
- package/.github/workflows/release.yml +6 -4
- package/CHANGELOG.md +7 -0
- package/cloudbuild.yaml +39 -0
- package/lib/schema.js +2 -1
- package/package.json +3 -3
- package/.circleci/config.yml +0 -61
|
@@ -9,13 +9,15 @@ jobs:
|
|
|
9
9
|
runs-on: ubuntu-latest
|
|
10
10
|
steps:
|
|
11
11
|
- name: Checkout
|
|
12
|
-
uses: actions/checkout@
|
|
12
|
+
uses: actions/checkout@v2
|
|
13
|
+
with:
|
|
14
|
+
persist-credentials: false
|
|
13
15
|
- name: Setup Node.js
|
|
14
|
-
uses: actions/setup-node@
|
|
16
|
+
uses: actions/setup-node@v2
|
|
15
17
|
with:
|
|
16
|
-
node-version:
|
|
18
|
+
node-version: 18
|
|
17
19
|
- name: Cache
|
|
18
|
-
uses: actions/cache@
|
|
20
|
+
uses: actions/cache@v2
|
|
19
21
|
with:
|
|
20
22
|
path: ~/.npm
|
|
21
23
|
key: ${{ runner.os }}-npm-${{ hashFiles('**/package.json') }}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [2.1.0](https://github.com/pagerinc/minion-army/compare/v2.0.0...v2.1.0) (2023-05-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add requeue to the schema ([#453](https://github.com/pagerinc/minion-army/issues/453)) ([74a5c41](https://github.com/pagerinc/minion-army/commit/74a5c4127aee8513500edfe04760bf03ffee057f))
|
|
7
|
+
|
|
1
8
|
# [2.0.0](https://github.com/pagerinc/minion-army/compare/v1.3.0...v2.0.0) (2020-08-19)
|
|
2
9
|
|
|
3
10
|
|
package/cloudbuild.yaml
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
steps:
|
|
2
|
+
- id: npm-install
|
|
3
|
+
name: node:18
|
|
4
|
+
secretEnv: ['NPM_TOKEN']
|
|
5
|
+
entrypoint: npm
|
|
6
|
+
args: ['i', '--quiet', '--package-lock-only']
|
|
7
|
+
|
|
8
|
+
- id: npm-ci
|
|
9
|
+
name: node:18
|
|
10
|
+
secretEnv: ['NPM_TOKEN']
|
|
11
|
+
entrypoint: npm
|
|
12
|
+
args: ['ci', '--quiet']
|
|
13
|
+
|
|
14
|
+
- id: test-unit
|
|
15
|
+
name: node:18
|
|
16
|
+
secretEnv: ['NPM_TOKEN']
|
|
17
|
+
entrypoint: npm
|
|
18
|
+
args: ['test']
|
|
19
|
+
|
|
20
|
+
- id: npm-publish
|
|
21
|
+
name: 'gcr.io/$PROJECT_ID/cloudbuilders/npm:6.13.4'
|
|
22
|
+
secretEnv: ['NPM_TOKEN']
|
|
23
|
+
env:
|
|
24
|
+
- 'TAG_NAME=$TAG_NAME'
|
|
25
|
+
- '_PR_NUMBER=$_PR_NUMBER'
|
|
26
|
+
|
|
27
|
+
timeout: 10m
|
|
28
|
+
|
|
29
|
+
logsBucket: 'gs://$PROJECT_ID-primary-cloudbuild-logs'
|
|
30
|
+
|
|
31
|
+
tags:
|
|
32
|
+
- 'backend'
|
|
33
|
+
- 'npm'
|
|
34
|
+
- 'nodejs'
|
|
35
|
+
|
|
36
|
+
secrets:
|
|
37
|
+
- kmsKeyName: projects/production-197117/locations/global/keyRings/gcb/cryptoKeys/main
|
|
38
|
+
secretEnv:
|
|
39
|
+
NPM_TOKEN: 'CiUA/4lqmXwRPPaGHe+X7TS7mwqARNCw5QFq7yfq7ESHaJrf+tzeElEADvOwrLQvnxCLG2wy+H2vD+DWHMosEgIfzpKNBJAVHX1u4FSwIF5utaN6tMIrLuZB18HnK2SKpsXTPvB/+0Eoz1acnj6WO+slz+GUGUnxefU='
|
package/lib/schema.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pager/minion-army",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Microservice Framework for RabbitMQ Workers",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@hapi/eslint-config-hapi": "13.x",
|
|
32
32
|
"@hapi/eslint-plugin-hapi": "4.x",
|
|
33
|
-
"@pager/semantic-release-config": "
|
|
33
|
+
"@pager/semantic-release-config": "2.x",
|
|
34
34
|
"ava": "3.x",
|
|
35
35
|
"eslint": "7.x",
|
|
36
36
|
"joi": "^17.2.1",
|
|
37
37
|
"nyc": "15.x",
|
|
38
|
-
"semantic-release": "
|
|
38
|
+
"semantic-release": "21.x"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"joi": "^17.2.0"
|
package/.circleci/config.yml
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
version: 2
|
|
2
|
-
|
|
3
|
-
defaults: &defaults
|
|
4
|
-
working_directory: ~/repo
|
|
5
|
-
docker:
|
|
6
|
-
- image: circleci/node:12.18@sha256:cc3bed34d3606a476fcb4ef0f2c03890e7a8f2114c2d81055a7695ddbf2eefc9
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
test:
|
|
10
|
-
<<: *defaults
|
|
11
|
-
steps:
|
|
12
|
-
- checkout
|
|
13
|
-
|
|
14
|
-
- restore_cache:
|
|
15
|
-
keys:
|
|
16
|
-
- dependency-cache-{{ checksum "package.json" }}
|
|
17
|
-
- dependency-cache-
|
|
18
|
-
|
|
19
|
-
- run: npm install
|
|
20
|
-
|
|
21
|
-
- save_cache:
|
|
22
|
-
key: dependency-cache-{{ checksum "package.json" }}
|
|
23
|
-
paths:
|
|
24
|
-
- ./node_modules
|
|
25
|
-
|
|
26
|
-
- run:
|
|
27
|
-
name: Run tests
|
|
28
|
-
command: npm test
|
|
29
|
-
|
|
30
|
-
- persist_to_workspace:
|
|
31
|
-
root: ~/repo
|
|
32
|
-
paths: .
|
|
33
|
-
|
|
34
|
-
deploy:
|
|
35
|
-
<<: *defaults
|
|
36
|
-
steps:
|
|
37
|
-
- attach_workspace:
|
|
38
|
-
at: ~/repo
|
|
39
|
-
- run:
|
|
40
|
-
name: Authenticate with registry
|
|
41
|
-
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc
|
|
42
|
-
- run:
|
|
43
|
-
name: Publish package
|
|
44
|
-
command: npm publish
|
|
45
|
-
|
|
46
|
-
workflows:
|
|
47
|
-
version: 2
|
|
48
|
-
test-deploy:
|
|
49
|
-
jobs:
|
|
50
|
-
- test:
|
|
51
|
-
filters:
|
|
52
|
-
tags:
|
|
53
|
-
only: /^v.*/
|
|
54
|
-
- deploy:
|
|
55
|
-
requires:
|
|
56
|
-
- test
|
|
57
|
-
filters:
|
|
58
|
-
tags:
|
|
59
|
-
only: /^v.*/
|
|
60
|
-
branches:
|
|
61
|
-
ignore: /.*/
|