@dword-design/base 9.5.20 → 9.5.21
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/dist/get-generated-files/get-github-sync-metadata/index.js +4 -3
- package/dist/get-generated-files/get-github-workflow/steps/cancel-existing.js +2 -1
- package/dist/get-generated-files/get-github-workflow/steps/coverage.js +2 -1
- package/dist/get-generated-files/get-github-workflow/steps/get-test.js +2 -1
- package/dist/get-generated-files/get-github-workflow/strategies/job-matrix.js +5 -4
- package/dist/get-generated-files/get-github-workflow/strategies/simple.js +3 -2
- package/dist/get-generated-files/get-renovate/__snapshots__/index.spec.js.snap +36 -27
- package/dist/get-generated-files/get-renovate/index.js +9 -8
- package/dist/get-generated-files/github-deprecated-dependencies/index.js +6 -5
- package/dist/get-generated-files/github-sync-labels.js +3 -2
- package/package.json +2 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import gitHubAction from 'tagged-template-noop';
|
|
1
2
|
export default function () {
|
|
2
3
|
return {
|
|
3
4
|
jobs: {
|
|
4
5
|
build: {
|
|
5
6
|
'runs-on': 'ubuntu-latest',
|
|
6
7
|
steps: [{
|
|
7
|
-
uses:
|
|
8
|
+
uses: gitHubAction`actions/checkout@v3`
|
|
8
9
|
}, {
|
|
9
|
-
uses:
|
|
10
|
+
uses: gitHubAction`jaid/action-sync-node-meta@v2.0.0`,
|
|
10
11
|
with: {
|
|
11
12
|
approve: false,
|
|
12
13
|
...(!this.config.syncKeywords && {
|
|
@@ -16,7 +17,7 @@ export default function () {
|
|
|
16
17
|
githubToken: '${{ secrets.GITHUB_TOKEN }}'
|
|
17
18
|
}
|
|
18
19
|
}, {
|
|
19
|
-
uses:
|
|
20
|
+
uses: gitHubAction`gautamkrishnar/keepalive-workflow@v1`
|
|
20
21
|
}]
|
|
21
22
|
}
|
|
22
23
|
},
|
|
@@ -5,6 +5,7 @@ import { constantCase } from 'constant-case';
|
|
|
5
5
|
import { findUpStop, findUpSync } from 'find-up';
|
|
6
6
|
import fs from 'fs-extra';
|
|
7
7
|
import P from 'path';
|
|
8
|
+
import gitHubAction from 'tagged-template-noop';
|
|
8
9
|
export default (() => {
|
|
9
10
|
var _ref, _ref2, _ref3, _envVariableNames;
|
|
10
11
|
const envSchemaPath = findUpSync(path => {
|
|
@@ -28,7 +29,7 @@ export default (() => {
|
|
|
28
29
|
run: 'yarn test'
|
|
29
30
|
}, {
|
|
30
31
|
if: 'failure()',
|
|
31
|
-
uses:
|
|
32
|
+
uses: gitHubAction`actions/upload-artifact@v3`,
|
|
32
33
|
with: {
|
|
33
34
|
name: 'Image Snapshot Diffs',
|
|
34
35
|
path: '**/__image_snapshots__/__diff_output__'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import map from "@dword-design/functions/dist/map.js";
|
|
2
|
+
import gitHubAction from 'tagged-template-noop';
|
|
2
3
|
import cancelExistingSteps from "../steps/cancel-existing.js";
|
|
3
4
|
import checkUnknownFilesSteps from "../steps/check-unknown-files.js";
|
|
4
5
|
import coverageSteps from "../steps/coverage.js";
|
|
@@ -16,13 +17,13 @@ export default (config => {
|
|
|
16
17
|
needs: 'test',
|
|
17
18
|
'runs-on': 'ubuntu-latest',
|
|
18
19
|
steps: [{
|
|
19
|
-
uses:
|
|
20
|
+
uses: gitHubAction`actions/checkout@v3`,
|
|
20
21
|
with: {
|
|
21
22
|
lfs: true,
|
|
22
23
|
ref: "${{ github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.ref || '' }}"
|
|
23
24
|
}
|
|
24
25
|
}, {
|
|
25
|
-
uses:
|
|
26
|
+
uses: gitHubAction`actions/setup-node@v3`,
|
|
26
27
|
with: {
|
|
27
28
|
'node-version': config.nodeVersion
|
|
28
29
|
}
|
|
@@ -40,13 +41,13 @@ export default (config => {
|
|
|
40
41
|
needs: 'cancel-existing',
|
|
41
42
|
'runs-on': '${{ matrix.os }}',
|
|
42
43
|
steps: [{
|
|
43
|
-
uses:
|
|
44
|
+
uses: gitHubAction`actions/checkout@v3`,
|
|
44
45
|
with: {
|
|
45
46
|
'fetch-depth': 0,
|
|
46
47
|
lfs: true
|
|
47
48
|
}
|
|
48
49
|
}, {
|
|
49
|
-
uses:
|
|
50
|
+
uses: gitHubAction`actions/setup-node@v3`,
|
|
50
51
|
with: {
|
|
51
52
|
'node-version': '${{ matrix.node }}'
|
|
52
53
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import gitHubAction from 'tagged-template-noop';
|
|
1
2
|
import cancelExistingSteps from "../steps/cancel-existing.js";
|
|
2
3
|
import checkUnknownFilesSteps from "../steps/check-unknown-files.js";
|
|
3
4
|
import coverageSteps from "../steps/coverage.js";
|
|
@@ -8,14 +9,14 @@ export default (config => ({
|
|
|
8
9
|
if: "!contains(github.event.head_commit.message, '[skip ci]')",
|
|
9
10
|
'runs-on': 'ubuntu-latest',
|
|
10
11
|
steps: [...cancelExistingSteps, {
|
|
11
|
-
uses:
|
|
12
|
+
uses: gitHubAction`actions/checkout@v3`,
|
|
12
13
|
with: {
|
|
13
14
|
'fetch-depth': 0,
|
|
14
15
|
lfs: true,
|
|
15
16
|
ref: "${{ github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.ref || '' }}"
|
|
16
17
|
}
|
|
17
18
|
}, {
|
|
18
|
-
uses:
|
|
19
|
+
uses: gitHubAction`actions/setup-node@v3`,
|
|
19
20
|
with: {
|
|
20
21
|
'node-version': config.nodeVersion
|
|
21
22
|
}
|
|
@@ -6,6 +6,9 @@ Object {
|
|
|
6
6
|
":semanticCommits",
|
|
7
7
|
":semanticPrefixFix",
|
|
8
8
|
],
|
|
9
|
+
"github-actions": Object {
|
|
10
|
+
"enabled": false,
|
|
11
|
+
},
|
|
9
12
|
"labels": Array [
|
|
10
13
|
"maintenance",
|
|
11
14
|
],
|
|
@@ -14,17 +17,19 @@ Object {
|
|
|
14
17
|
"enabled": true,
|
|
15
18
|
"semanticCommitType": "chore",
|
|
16
19
|
},
|
|
17
|
-
"
|
|
20
|
+
"rangeStrategy": "replace",
|
|
21
|
+
"regexManagers": Array [
|
|
18
22
|
Object {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
"minor",
|
|
23
|
-
"patch",
|
|
23
|
+
"datasourceTemplate": "github-tags",
|
|
24
|
+
"fileMatch": Array [
|
|
25
|
+
"\\\\.js$",
|
|
24
26
|
],
|
|
27
|
+
"matchStrings": Array [
|
|
28
|
+
"(^|\\\\s)gitHubAction\`(?<depName>.*?)@v(?<currentValue>.*?)\`",
|
|
29
|
+
],
|
|
30
|
+
"versioning": "npm",
|
|
25
31
|
},
|
|
26
32
|
],
|
|
27
|
-
"rangeStrategy": "auto",
|
|
28
33
|
"semanticCommitScope": null,
|
|
29
34
|
}
|
|
30
35
|
`;
|
|
@@ -64,9 +69,9 @@ Object {
|
|
|
64
69
|
":semanticCommits",
|
|
65
70
|
":semanticPrefixFix",
|
|
66
71
|
],
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
|
|
72
|
+
"github-actions": Object {
|
|
73
|
+
"enabled": false,
|
|
74
|
+
},
|
|
70
75
|
"labels": Array [
|
|
71
76
|
"maintenance",
|
|
72
77
|
],
|
|
@@ -74,17 +79,19 @@ Object {
|
|
|
74
79
|
"automerge": true,
|
|
75
80
|
"enabled": true,
|
|
76
81
|
},
|
|
77
|
-
"
|
|
82
|
+
"rangeStrategy": "replace",
|
|
83
|
+
"regexManagers": Array [
|
|
78
84
|
Object {
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
"minor",
|
|
83
|
-
"patch",
|
|
85
|
+
"datasourceTemplate": "github-tags",
|
|
86
|
+
"fileMatch": Array [
|
|
87
|
+
"\\\\.js$",
|
|
84
88
|
],
|
|
89
|
+
"matchStrings": Array [
|
|
90
|
+
"(^|\\\\s)gitHubAction\`(?<depName>.*?)@v(?<currentValue>.*?)\`",
|
|
91
|
+
],
|
|
92
|
+
"versioning": "npm",
|
|
85
93
|
},
|
|
86
94
|
],
|
|
87
|
-
"rangeStrategy": "auto",
|
|
88
95
|
"semanticCommitScope": null,
|
|
89
96
|
}
|
|
90
97
|
`;
|
|
@@ -95,9 +102,9 @@ Object {
|
|
|
95
102
|
":semanticCommits",
|
|
96
103
|
":semanticPrefixFix",
|
|
97
104
|
],
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
|
|
105
|
+
"github-actions": Object {
|
|
106
|
+
"enabled": false,
|
|
107
|
+
},
|
|
101
108
|
"labels": Array [
|
|
102
109
|
"maintenance",
|
|
103
110
|
],
|
|
@@ -106,17 +113,19 @@ Object {
|
|
|
106
113
|
"enabled": true,
|
|
107
114
|
"semanticCommitType": "chore",
|
|
108
115
|
},
|
|
109
|
-
"
|
|
116
|
+
"rangeStrategy": "replace",
|
|
117
|
+
"regexManagers": Array [
|
|
110
118
|
Object {
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
119
|
+
"datasourceTemplate": "github-tags",
|
|
120
|
+
"fileMatch": Array [
|
|
121
|
+
"\\\\.js$",
|
|
122
|
+
],
|
|
123
|
+
"matchStrings": Array [
|
|
124
|
+
"(^|\\\\s)gitHubAction\`(?<depName>.*?)@v(?<currentValue>.*?)\`",
|
|
116
125
|
],
|
|
126
|
+
"versioning": "npm",
|
|
117
127
|
},
|
|
118
128
|
],
|
|
119
|
-
"rangeStrategy": "auto",
|
|
120
129
|
"semanticCommitScope": null,
|
|
121
130
|
}
|
|
122
131
|
`;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export default function () {
|
|
2
2
|
return {
|
|
3
|
-
...(this.packageConfig.name !== '@dword-design/base' && {
|
|
4
|
-
ignorePaths: ['.github/workflows/build.yml']
|
|
5
|
-
}),
|
|
6
3
|
extends: [':semanticCommits', ':semanticPrefixFix'],
|
|
4
|
+
'github-actions': {
|
|
5
|
+
enabled: false
|
|
6
|
+
},
|
|
7
7
|
labels: ['maintenance'],
|
|
8
8
|
lockFileMaintenance: {
|
|
9
9
|
automerge: true,
|
|
@@ -12,12 +12,13 @@ export default function () {
|
|
|
12
12
|
semanticCommitType: 'chore'
|
|
13
13
|
})
|
|
14
14
|
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
rangeStrategy: 'replace',
|
|
16
|
+
regexManagers: [{
|
|
17
|
+
datasourceTemplate: 'github-tags',
|
|
18
|
+
fileMatch: ['\\.js$'],
|
|
19
|
+
matchStrings: ['(^|\\s)gitHubAction`(?<depName>.*?)@v(?<currentValue>.*?)`'],
|
|
20
|
+
versioning: 'npm'
|
|
19
21
|
}],
|
|
20
|
-
rangeStrategy: 'auto',
|
|
21
22
|
semanticCommitScope: null
|
|
22
23
|
};
|
|
23
24
|
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
import gitHubAction from 'tagged-template-noop';
|
|
1
2
|
export default {
|
|
2
3
|
jobs: {
|
|
3
4
|
run: {
|
|
4
5
|
'runs-on': 'ubuntu-latest',
|
|
5
6
|
steps: [{
|
|
6
|
-
uses:
|
|
7
|
+
uses: gitHubAction`actions/checkout@v3`,
|
|
7
8
|
with: {
|
|
8
9
|
lfs: true
|
|
9
10
|
}
|
|
10
11
|
}, {
|
|
11
12
|
'continue-on-error': true,
|
|
12
13
|
id: 'check-deprecated-js-deps',
|
|
13
|
-
uses:
|
|
14
|
+
uses: gitHubAction`tinovyatkin/action-check-deprecated-js-deps@v1`
|
|
14
15
|
}, {
|
|
15
16
|
env: {
|
|
16
17
|
DEPRECATED: '${{ steps.check-deprecated-js-deps.outputs.deprecated }}',
|
|
@@ -19,20 +20,20 @@ export default {
|
|
|
19
20
|
},
|
|
20
21
|
id: 'create-deprecation-issue',
|
|
21
22
|
if: '${{ steps.check-deprecated-js-deps.outputs.deprecated }}',
|
|
22
|
-
uses:
|
|
23
|
+
uses: gitHubAction`JasonEtco/create-an-issue@v2`,
|
|
23
24
|
with: {
|
|
24
25
|
filename: '.github/DEPRECATED_DEPENDENCIES_ISSUE_TEMPLATE.md',
|
|
25
26
|
update_existing: true
|
|
26
27
|
}
|
|
27
28
|
}, {
|
|
28
29
|
if: '${{ !steps.check-deprecated-js-deps.outputs.deprecated && steps.create-deprecation-issue.outputs.number }}',
|
|
29
|
-
uses:
|
|
30
|
+
uses: gitHubAction`peter-evans/close-issue@v2`,
|
|
30
31
|
with: {
|
|
31
32
|
comment: 'Auto-closing the issue',
|
|
32
33
|
'issue-number': '${{ steps.create-deprecation-issue.outputs.number }}'
|
|
33
34
|
}
|
|
34
35
|
}, {
|
|
35
|
-
uses:
|
|
36
|
+
uses: gitHubAction`gautamkrishnar/keepalive-workflow@v1`
|
|
36
37
|
}]
|
|
37
38
|
}
|
|
38
39
|
},
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import gitHubAction from 'tagged-template-noop';
|
|
1
2
|
export default {
|
|
2
3
|
jobs: {
|
|
3
4
|
build: {
|
|
4
5
|
'runs-on': 'ubuntu-latest',
|
|
5
6
|
steps: [{
|
|
6
|
-
uses:
|
|
7
|
+
uses: gitHubAction`actions/checkout@v3`
|
|
7
8
|
}, {
|
|
8
9
|
env: {
|
|
9
10
|
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
|
10
11
|
},
|
|
11
|
-
uses:
|
|
12
|
+
uses: gitHubAction`micnncim/action-label-syncer@v1`
|
|
12
13
|
}]
|
|
13
14
|
}
|
|
14
15
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dword-design/base",
|
|
3
|
-
"version": "9.5.
|
|
3
|
+
"version": "9.5.21",
|
|
4
4
|
"description": "Base package for projects.",
|
|
5
5
|
"repository": "dword-design/base",
|
|
6
6
|
"funding": "https://github.com/sponsors/dword-design",
|
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
"spdx-expression-parse": "^3.0.0",
|
|
82
82
|
"spdx-license-list": "^6.1.0",
|
|
83
83
|
"suppress-experimental-warnings": "^1.1.0",
|
|
84
|
+
"tagged-template-noop": "^2.1.1",
|
|
84
85
|
"yaml": "^2.2.1"
|
|
85
86
|
},
|
|
86
87
|
"devDependencies": {
|