@dword-design/base 8.7.2 → 8.7.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.
|
@@ -87,6 +87,9 @@ Object {
|
|
|
87
87
|
"run": "yarn --frozen-lockfile",
|
|
88
88
|
},
|
|
89
89
|
Object {
|
|
90
|
+
"env": Object {
|
|
91
|
+
"GH_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
|
|
92
|
+
},
|
|
90
93
|
"run": "yarn test",
|
|
91
94
|
},
|
|
92
95
|
Object {
|
|
@@ -179,6 +182,9 @@ Object {
|
|
|
179
182
|
"run": "yarn --frozen-lockfile",
|
|
180
183
|
},
|
|
181
184
|
Object {
|
|
185
|
+
"env": Object {
|
|
186
|
+
"GH_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
|
|
187
|
+
},
|
|
182
188
|
"run": "yarn test",
|
|
183
189
|
},
|
|
184
190
|
Object {
|
|
@@ -231,6 +237,151 @@ Object {
|
|
|
231
237
|
}
|
|
232
238
|
`;
|
|
233
239
|
|
|
240
|
+
exports[`index package.json 1`] = `
|
|
241
|
+
Object {
|
|
242
|
+
"jobs": Object {
|
|
243
|
+
"cancel-existing": Object {
|
|
244
|
+
"if": "!contains(github.event.head_commit.message, '[skip ci]')",
|
|
245
|
+
"runs-on": "ubuntu-latest",
|
|
246
|
+
"steps": Array [
|
|
247
|
+
Object {
|
|
248
|
+
"env": Object {
|
|
249
|
+
"GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
|
|
250
|
+
},
|
|
251
|
+
"uses": "rokroskar/workflow-run-cleanup-action@v0.3.3",
|
|
252
|
+
},
|
|
253
|
+
],
|
|
254
|
+
},
|
|
255
|
+
"release": Object {
|
|
256
|
+
"needs": "test",
|
|
257
|
+
"runs-on": "ubuntu-latest",
|
|
258
|
+
"steps": Array [
|
|
259
|
+
Object {
|
|
260
|
+
"uses": "actions/checkout@v3",
|
|
261
|
+
"with": Object {
|
|
262
|
+
"lfs": true,
|
|
263
|
+
"ref": "\${{ github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.ref || '' }}",
|
|
264
|
+
},
|
|
265
|
+
},
|
|
266
|
+
Object {
|
|
267
|
+
"uses": "actions/setup-node@v3",
|
|
268
|
+
"with": Object {
|
|
269
|
+
"node-version": 14,
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
Object {
|
|
273
|
+
"run": "git config --global user.email \\"actions@github.com\\"",
|
|
274
|
+
},
|
|
275
|
+
Object {
|
|
276
|
+
"run": "git config --global user.name \\"GitHub Actions\\"",
|
|
277
|
+
},
|
|
278
|
+
Object {
|
|
279
|
+
"run": "yarn --frozen-lockfile",
|
|
280
|
+
},
|
|
281
|
+
Object {
|
|
282
|
+
"run": "yarn checkUnknownFiles",
|
|
283
|
+
},
|
|
284
|
+
Object {
|
|
285
|
+
"run": "yarn lint",
|
|
286
|
+
},
|
|
287
|
+
Object {
|
|
288
|
+
"env": Object {
|
|
289
|
+
"GITHUB_REPOSITORY": "\${{ secrets.GITHUB_REPOSITORY }}",
|
|
290
|
+
"GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
|
|
291
|
+
},
|
|
292
|
+
"name": "Push changed files",
|
|
293
|
+
"run": "yarn dw-ci push-changed-files",
|
|
294
|
+
},
|
|
295
|
+
Object {
|
|
296
|
+
"env": Object {
|
|
297
|
+
"GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
|
|
298
|
+
"NPM_TOKEN": "\${{ secrets.NPM_TOKEN }}",
|
|
299
|
+
},
|
|
300
|
+
"if": "github.ref == 'refs/heads/master'",
|
|
301
|
+
"name": "Release",
|
|
302
|
+
"run": "yarn semantic-release",
|
|
303
|
+
},
|
|
304
|
+
],
|
|
305
|
+
},
|
|
306
|
+
"test": Object {
|
|
307
|
+
"needs": "cancel-existing",
|
|
308
|
+
"runs-on": "\${{ matrix.os }}",
|
|
309
|
+
"steps": Array [
|
|
310
|
+
Object {
|
|
311
|
+
"uses": "actions/checkout@v3",
|
|
312
|
+
"with": Object {
|
|
313
|
+
"fetch-depth": 0,
|
|
314
|
+
"lfs": true,
|
|
315
|
+
},
|
|
316
|
+
},
|
|
317
|
+
Object {
|
|
318
|
+
"uses": "actions/setup-node@v3",
|
|
319
|
+
"with": Object {
|
|
320
|
+
"node-version": "\${{ matrix.node }}",
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
Object {
|
|
324
|
+
"run": "yarn --frozen-lockfile",
|
|
325
|
+
},
|
|
326
|
+
Object {
|
|
327
|
+
"env": Object {
|
|
328
|
+
"GH_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
|
|
329
|
+
},
|
|
330
|
+
"run": "yarn test",
|
|
331
|
+
},
|
|
332
|
+
Object {
|
|
333
|
+
"if": "failure()",
|
|
334
|
+
"uses": "actions/upload-artifact@v3",
|
|
335
|
+
"with": Object {
|
|
336
|
+
"name": "Image Snapshot Diffs",
|
|
337
|
+
"path": "**/__image_snapshots__/__diff_output__",
|
|
338
|
+
},
|
|
339
|
+
},
|
|
340
|
+
Object {
|
|
341
|
+
"if": "matrix.os == 'ubuntu-latest' && matrix.node == 14",
|
|
342
|
+
"uses": "codecov/codecov-action@v2",
|
|
343
|
+
"with": Object {
|
|
344
|
+
"fail_ci_if_error": true,
|
|
345
|
+
"token": "\${{ secrets.CODECOV_TOKEN }}",
|
|
346
|
+
},
|
|
347
|
+
},
|
|
348
|
+
],
|
|
349
|
+
"strategy": Object {
|
|
350
|
+
"matrix": Object {
|
|
351
|
+
"include": Array [
|
|
352
|
+
Object {
|
|
353
|
+
"node": 12,
|
|
354
|
+
"os": "ubuntu-latest",
|
|
355
|
+
},
|
|
356
|
+
Object {
|
|
357
|
+
"node": 14,
|
|
358
|
+
"os": "ubuntu-latest",
|
|
359
|
+
},
|
|
360
|
+
Object {
|
|
361
|
+
"os": "macos-latest",
|
|
362
|
+
"version": 14,
|
|
363
|
+
},
|
|
364
|
+
Object {
|
|
365
|
+
"os": "windows-latest",
|
|
366
|
+
"version": 14,
|
|
367
|
+
},
|
|
368
|
+
],
|
|
369
|
+
},
|
|
370
|
+
},
|
|
371
|
+
},
|
|
372
|
+
},
|
|
373
|
+
"name": "build",
|
|
374
|
+
"on": Object {
|
|
375
|
+
"pull_request": Object {},
|
|
376
|
+
"push": Object {
|
|
377
|
+
"branches": Array [
|
|
378
|
+
"master",
|
|
379
|
+
],
|
|
380
|
+
},
|
|
381
|
+
},
|
|
382
|
+
}
|
|
383
|
+
`;
|
|
384
|
+
|
|
234
385
|
exports[`index package.json same path as .env.schema.json 1`] = `
|
|
235
386
|
Object {
|
|
236
387
|
"jobs": Object {
|
|
@@ -319,6 +470,7 @@ Object {
|
|
|
319
470
|
},
|
|
320
471
|
Object {
|
|
321
472
|
"env": Object {
|
|
473
|
+
"GH_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
|
|
322
474
|
"TEST_FOO": "\${{ secrets.TEST_FOO }}",
|
|
323
475
|
},
|
|
324
476
|
"run": "yarn test",
|
|
@@ -556,6 +708,7 @@ Object {
|
|
|
556
708
|
},
|
|
557
709
|
Object {
|
|
558
710
|
"env": Object {
|
|
711
|
+
"GH_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
|
|
559
712
|
"TEST_BAR": "\${{ secrets.TEST_BAR }}",
|
|
560
713
|
"TEST_FOO": "\${{ secrets.TEST_FOO }}",
|
|
561
714
|
},
|
|
@@ -648,6 +801,9 @@ Object {
|
|
|
648
801
|
"run": "yarn --frozen-lockfile",
|
|
649
802
|
},
|
|
650
803
|
Object {
|
|
804
|
+
"env": Object {
|
|
805
|
+
"GH_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
|
|
806
|
+
},
|
|
651
807
|
"run": "yarn test",
|
|
652
808
|
},
|
|
653
809
|
Object {
|
|
@@ -41,10 +41,10 @@ const envVariableNames = (_ref = (_ref2 = envSchemaPath ? require(envSchemaPath)
|
|
|
41
41
|
return `TEST_${(_name = name, (0, _constantCase.constantCase)(_name))}`;
|
|
42
42
|
})(_ref));
|
|
43
43
|
var _default = [{
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
env: { ...(_ref3 = (_envVariableNames = envVariableNames, (0, _map.default)(name => [name, `\${{ secrets.${name} }}`])(_envVariableNames)), (0, _fromPairs.default)(_ref3)),
|
|
45
|
+
GH_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
|
46
|
+
},
|
|
47
|
+
run: 'yarn test'
|
|
48
48
|
}, {
|
|
49
49
|
if: 'failure()',
|
|
50
50
|
uses: 'actions/upload-artifact@v3',
|