@wmfs/lerna-sync 1.8.0 → 1.11.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,48 +1,91 @@
1
1
  version: 2
2
2
  jobs:
3
- test:
3
+ unit test:
4
4
  docker:
5
- # use node:lts
6
5
  - image: cimg/node:lts
6
+ auth:
7
+ username: $DOCKERHUB_USERNAME
8
+ password: $DOCKERHUB_PASSWORD
7
9
  environment:
8
- TZ: "Europe/London"
10
+ TZ: "Europe/London"
9
11
  working_directory: ~/repo
10
12
  steps:
11
13
  - checkout
14
+ - restore_cache:
15
+ keys:
16
+ - v1-deps-{{ checksum "package.json" }}
17
+ - v1-deps-
12
18
  - run:
13
19
  name: install
14
20
  command: npm install
21
+ - save_cache:
22
+ key: v1-deps-{{ checksum "package.json" }}
23
+ paths:
24
+ - node_modules
15
25
  - run:
16
26
  name: test
17
27
  command: npm test
18
28
  - run:
19
29
  name: codecov
20
30
  command: npm run coverage
31
+ lint:
32
+ docker:
33
+ - image: cimg/node:lts
34
+ auth:
35
+ username: $DOCKERHUB_USERNAME
36
+ password: $DOCKERHUB_PASSWORD
37
+ working_directory: ~/repo
38
+ steps:
39
+ - checkout
40
+ - run:
41
+ name: install standard
42
+ command: npm install standard
43
+ - run:
44
+ name: lint
45
+ command: npm run lint
21
46
  release:
22
47
  docker:
23
- # use node:lts
24
- - image: cimg/node:lts
25
- environment:
26
- TZ: "Europe/London"
48
+ - image: cimg/node:lts
49
+ auth:
50
+ username: $DOCKERHUB_USERNAME
51
+ password: $DOCKERHUB_PASSWORD
52
+ environment:
53
+ TZ: "Europe/London"
27
54
  working_directory: ~/repo
28
55
  steps:
29
- - checkout
30
- - run:
31
- name: install
32
- command: npm install
33
- - run:
34
- name: release
35
- command: npx semantic-release
56
+ - checkout
57
+ - restore_cache:
58
+ keys:
59
+ - v1-deps-{{ checksum "package.json" }}
60
+ - v1-deps-
61
+ - run:
62
+ name: install
63
+ command: npm install
64
+ - save_cache:
65
+ key: v1-deps-{{ checksum "package.json" }}
66
+ paths:
67
+ - node_modules
68
+ - run:
69
+ name: release
70
+ command: npx semantic-release
36
71
  workflows:
37
72
  version: 2
38
73
  test_and_release:
39
74
  jobs:
40
- - test:
41
- context: tymly_global
42
- - release:
43
- context: tymly_global
44
- requires:
45
- - test
46
- filters:
47
- branches:
48
- only: master
75
+ - unit test:
76
+ context:
77
+ - docker-hub-creds
78
+ - build-env-vars
79
+ - lint:
80
+ context:
81
+ - docker-hub-creds
82
+ - release:
83
+ context:
84
+ - docker-hub-creds
85
+ - build-env-vars
86
+ requires:
87
+ - unit test
88
+ - lint
89
+ filters:
90
+ branches:
91
+ only: master
package/CHANGELOG.md CHANGED
@@ -1,3 +1,82 @@
1
+ # [1.11.0](https://github.com/wmfs/lerna-sync/compare/v1.10.0...v1.11.0) (2022-01-25)
2
+
3
+
4
+ ### 🛠 Builds
5
+
6
+ * **deps-dev:** update dependency [@semantic-release](https://github.com/semantic-release)/changelog to v6 ([4257b58](https://github.com/wmfs/lerna-sync/commit/4257b585eee492963446faeb9ca3859374e44090))
7
+ * **deps-dev:** update dependency [@semantic-release](https://github.com/semantic-release)/git to v10 ([e8cf998](https://github.com/wmfs/lerna-sync/commit/e8cf9985cf1535aac7eae3ce685b372132728fb1))
8
+ * **deps-dev:** update dependency [@semantic-release](https://github.com/semantic-release)/git to v9.0.1 ([2d3b883](https://github.com/wmfs/lerna-sync/commit/2d3b883b6e0e0a9ea19efde8c61270f5c1cc2ef6))
9
+ * **deps-dev:** update dependency mocha to v9.1.1 ([911907a](https://github.com/wmfs/lerna-sync/commit/911907a616304c3fd9e63c59b54530f385f96c60))
10
+ * **deps-dev:** update dependency mocha to v9.1.2 ([7d0774d](https://github.com/wmfs/lerna-sync/commit/7d0774d4de73caa04f3a95db558e5b6acf5e888b))
11
+ * **deps-dev:** update dependency mocha to v9.1.3 ([683c555](https://github.com/wmfs/lerna-sync/commit/683c555745e762bbc1156ffa2ae3d352e1257b45))
12
+ * **deps-dev:** update dependency mocha to v9.1.4 ([b7cfaef](https://github.com/wmfs/lerna-sync/commit/b7cfaefdc28ef0002e31e7222d11675bc3cfc021))
13
+ * **deps-dev:** update dependency mocha to v9.2.0 ([01cbef9](https://github.com/wmfs/lerna-sync/commit/01cbef9331fec13d87f68000b3acf81f6fa5ab31))
14
+ * **deps-dev:** update dependency semantic-release to v17.4.7 ([694a7c0](https://github.com/wmfs/lerna-sync/commit/694a7c02c927372848b951a82674253dcfab203a))
15
+ * **deps-dev:** update dependency semantic-release to v18 ([deee5b9](https://github.com/wmfs/lerna-sync/commit/deee5b976d7531e013353ecf77335bad96b9514e))
16
+ * **deps-dev:** update dependency semantic-release to v18.0.1 ([130cd76](https://github.com/wmfs/lerna-sync/commit/130cd7679333b0fe060f22ebae55348c2d44bbfe))
17
+ * **deps-dev:** update dependency semantic-release to v19 ([d9f94f0](https://github.com/wmfs/lerna-sync/commit/d9f94f07c4db4c1eee0279a3c13b2dbf13038c8c))
18
+ * **deps-dev:** update semantic-release monorepo ([e749bba](https://github.com/wmfs/lerna-sync/commit/e749bba832017fc63e0c61e042edf1a2a73ce6c5))
19
+ * **deps:** update dependency [@octokit](https://github.com/octokit)/graphql to v4.8.0 ([b16cdbb](https://github.com/wmfs/lerna-sync/commit/b16cdbb6e724852c1293b0fb5a5cfaa68372d12e))
20
+
21
+ # [1.10.0](https://github.com/wmfs/lerna-sync/compare/v1.9.1...v1.10.0) (2021-08-24)
22
+
23
+
24
+ ### 🛠 Builds
25
+
26
+ * **deps:** update dependency lodash to v4.17.21 [security] ([18e25a2](https://github.com/wmfs/lerna-sync/commit/18e25a23f625db65777bec706fa8eec5500736eb))
27
+ * **deps-dev:** update dependency chai to v4.3.4 ([4d409c3](https://github.com/wmfs/lerna-sync/commit/4d409c3940d96adc73eacc895fa9190cf428e5b9))
28
+ * **deps-dev:** update dependency codecov to v3.8.3 ([25d952a](https://github.com/wmfs/lerna-sync/commit/25d952a30bc25938477036d2590c4e60df899c43))
29
+ * **deps-dev:** update dependency mocha to v8.4.0 ([6b0b6a4](https://github.com/wmfs/lerna-sync/commit/6b0b6a4b88e6d2dcfc39255842652aa68d9b47d8))
30
+ * **deps-dev:** update dependency mocha to v9 ([e41c289](https://github.com/wmfs/lerna-sync/commit/e41c289b8c93f900386c55f2fe726102d6e6f2b8))
31
+ * **deps-dev:** update dependency mocha to v9.1.0 ([f9d53c6](https://github.com/wmfs/lerna-sync/commit/f9d53c6e44c5c8a1ab78ce08d3da590ca252d0e3))
32
+ * **deps-dev:** update dependency semantic-release to v17.2.3 [security] ([af1fa4b](https://github.com/wmfs/lerna-sync/commit/af1fa4be92bef793ebe1ecb3b2cf9c84ecc98fbd))
33
+ * **deps-dev:** update dependency semantic-release to v17.4.4 ([302515f](https://github.com/wmfs/lerna-sync/commit/302515fe14dbc4eb8501a635d4f8e8fc16291bb0))
34
+ * **deps-dev:** update dependency semantic-release to v17.4.5 ([8fbd018](https://github.com/wmfs/lerna-sync/commit/8fbd018ffd30cd41fe139fa5a30a61d708f4afe5))
35
+ * **deps-dev:** update dependency semantic-release to v17.4.6 ([59911e5](https://github.com/wmfs/lerna-sync/commit/59911e59dfe648f80e3e06c1afe61716a8a2bc27))
36
+
37
+
38
+ ### ♻️ Chores
39
+
40
+ * add renovate config [ch6600] ([5f5ba4f](https://github.com/wmfs/lerna-sync/commit/5f5ba4fe1e74da2f9f591da1926371e55166a056))
41
+
42
+ ## [1.9.1](https://github.com/wmfs/lerna-sync/compare/v1.9.0...v1.9.1) (2020-10-28)
43
+
44
+
45
+ ### 🐛 Bug Fixes
46
+
47
+ * this.messages is not a function ([9b9ccee](https://github.com/wmfs/lerna-sync/commit/9b9ccee9c3bfbe29ca0c0814cd74a53ca784edfd))
48
+
49
+
50
+ ### ⚙️ Continuous Integrations
51
+
52
+ * **circle:** authenticate Docker image pull [ch2767] ([03e961b](https://github.com/wmfs/lerna-sync/commit/03e961bd4bf0668b613be934ff7e08109edc9f0a))
53
+ * **circle:** cache dependencies [ch2770] ([8642825](https://github.com/wmfs/lerna-sync/commit/8642825ed775b67aa1f8d4f06026b3b29a0debe4))
54
+ * **circle:** separate linting job [ch1009] ([2592063](https://github.com/wmfs/lerna-sync/commit/25920636485833f09df5e2414608af6ecf1c5c20))
55
+ * **circle:** update build environment variable context name [ch2771] ([a64fd63](https://github.com/wmfs/lerna-sync/commit/a64fd637f55ae2269bed5993821f43556627f97b))
56
+
57
+ # [1.9.0](https://github.com/wmfs/lerna-sync/compare/v1.8.0...v1.9.0) (2020-10-21)
58
+
59
+
60
+ ### 🐛 Bug Fixes
61
+
62
+ * breaking change in [@octokit](https://github.com/octokit)/graphql ([90bb6fa](https://github.com/wmfs/lerna-sync/commit/90bb6faa341400a44ed72b9de5f972e4909f44f6))
63
+
64
+
65
+ ### 🛠 Builds
66
+
67
+ * **deps:** update all dependencies ([a4eff5b](https://github.com/wmfs/lerna-sync/commit/a4eff5b7bdb984ca16e443739f8f0820d45b16c4))
68
+ * **deps-dev:** bump codecov from 3.6.5 to 3.7.1 ([b9483f4](https://github.com/wmfs/lerna-sync/commit/b9483f4d2ea535c7078736d3d1d1e0e30823d763))
69
+
70
+
71
+ ### 📦 Code Refactoring
72
+
73
+ * standard linting ([fb1bfc1](https://github.com/wmfs/lerna-sync/commit/fb1bfc1a4dce77fac335b055945d61447d1a6f8e))
74
+
75
+
76
+ ### ⚙️ Continuous Integrations
77
+
78
+ * **circle:** separate lint job [ch1009] ([3657fb8](https://github.com/wmfs/lerna-sync/commit/3657fb8a016b96b755a3b5dc97fd55acf46b7459))
79
+
1
80
  # [1.8.0](https://github.com/wmfs/lerna-sync/compare/v1.7.0...v1.8.0) (2020-07-20)
2
81
 
3
82
 
package/lib/index.js CHANGED
@@ -6,7 +6,7 @@ const humanizeDuration = require('humanize-duration')
6
6
  const chalk = require('chalk')
7
7
  const getLocalGitInfo = require('git-repo-info')
8
8
  const dottie = require('dottie')
9
- const graphql = require('@octokit/graphql')
9
+ const { graphql } = require('@octokit/graphql')
10
10
  const _ = require('lodash')
11
11
  const query = require('./github-graphql-query')
12
12
  const actionFunctions = require('./actions')
@@ -9,7 +9,7 @@ module.exports = class Messages {
9
9
 
10
10
  addMessage (repoName, domain, level, err) {
11
11
  this.messageCount++
12
- if (!this.messages.hasOwnProperty(domain)) {
12
+ if (!this.messages[domain]) {
13
13
  this.messages[domain] = []
14
14
  }
15
15
  this.messages[domain].push(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wmfs/lerna-sync",
3
- "version": "1.8.0",
3
+ "version": "1.11.0",
4
4
  "description": "A package to synchronize distributed GitHub repos inside a Lerna monorepo.",
5
5
  "author": "West Midlands Fire Service",
6
6
  "homepage": "https://github.com/wmfs/lerna-sync#readme",
@@ -23,30 +23,30 @@
23
23
  "lib": "lib"
24
24
  },
25
25
  "dependencies": {
26
- "@octokit/graphql": "2.0.1",
27
- "chalk": "2.4.2",
28
- "dottie": "2.0.1",
29
- "git-repo-info": "2.1.0",
30
- "glob": "7.1.3",
31
- "humanize-duration": "3.17.0",
32
- "jsonfile": "5.0.0",
33
- "lodash": "4.17.19"
26
+ "@octokit/graphql": "4.8.0",
27
+ "chalk": "4.1.0",
28
+ "dottie": "2.0.2",
29
+ "git-repo-info": "2.1.1",
30
+ "glob": "7.1.6",
31
+ "humanize-duration": "3.24.0",
32
+ "jsonfile": "6.0.1",
33
+ "lodash": "4.17.21"
34
34
  },
35
35
  "devDependencies": {
36
- "chai": "4.2.0",
37
- "codecov": "3.6.5",
38
- "conventional-changelog-metahub": "3.0.0",
39
- "cz-conventional-changelog": "3.0.2",
40
- "mocha": "6.2.2",
41
- "nyc": "15.0.0",
42
- "semantic-release": "17.0.4",
43
- "standard": "12.0.1",
44
- "@semantic-release/changelog": "5.0.0",
45
- "@semantic-release/git": "9.0.0"
36
+ "chai": "4.3.4",
37
+ "codecov": "3.8.3",
38
+ "conventional-changelog-metahub": "4.0.1",
39
+ "cz-conventional-changelog": "3.3.0",
40
+ "mocha": "9.2.0",
41
+ "nyc": "15.1.0",
42
+ "semantic-release": "19.0.2",
43
+ "standard": "14.3.4",
44
+ "@semantic-release/changelog": "6.0.1",
45
+ "@semantic-release/git": "10.0.1"
46
46
  },
47
47
  "scripts": {
48
48
  "lint": "standard",
49
- "test": "nyc mocha && standard",
49
+ "test": "nyc mocha",
50
50
  "coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
51
51
  "semantic-release": "semantic-release"
52
52
  },
package/renovate.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "extends": [
3
+ "config:base"
4
+ ],
5
+ "dependencyDashboard": true,
6
+ "enabledManagers": ["npm"],
7
+ "packageRules": [
8
+ {
9
+ "matchDepTypes": ["devDependencies"],
10
+ "automerge": true,
11
+ "semanticCommitType": "build",
12
+ "semanticCommitScope": "deps-dev",
13
+ "labels": ["devDependencies"]
14
+ },
15
+ {
16
+ "matchDepTypes": ["dependencies"],
17
+ "semanticCommitType": "build",
18
+ "semanticCommitScope": "deps",
19
+ "labels": ["dependencies"],
20
+ "reviewers": ["team:tymly-reviewers"]
21
+ }
22
+ ],
23
+ "vulnerabilityAlerts": {
24
+ "labels": ["security"]
25
+ }
26
+ }