@vidavidorra/create-project 4.0.45 → 4.1.0-beta.2
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.
|
@@ -6,6 +6,11 @@ on:
|
|
|
6
6
|
- beta
|
|
7
7
|
- renovate/**
|
|
8
8
|
pull_request: null
|
|
9
|
+
permissions:
|
|
10
|
+
contents: write
|
|
11
|
+
id-token: write
|
|
12
|
+
issues: write
|
|
13
|
+
pull-requests: write
|
|
9
14
|
jobs:
|
|
10
15
|
lint-commit-messages:
|
|
11
16
|
uses: vidavidorra/.github/.github/workflows/lint-commit-messages.yml@24ea160cd3be95b9bbfb4853d71124d2046d0d0e # v7.0.0
|
|
@@ -16,13 +21,11 @@ jobs:
|
|
|
16
21
|
test:
|
|
17
22
|
uses: vidavidorra/.github/.github/workflows/node-test.yml@24ea160cd3be95b9bbfb4853d71124d2046d0d0e # v7.0.0
|
|
18
23
|
code-coverage:
|
|
19
|
-
uses: vidavidorra/.github/.github/workflows/node-test-coverage.yml@
|
|
24
|
+
uses: vidavidorra/.github/.github/workflows/node-test-coverage.yml@660c2c3981334f4690d43df8555eac326705bd13 # v8.0.0-beta.1
|
|
20
25
|
needs:
|
|
21
26
|
- lint
|
|
22
27
|
- build
|
|
23
28
|
- test
|
|
24
|
-
secrets:
|
|
25
|
-
codecovToken: ${{ secrets.CODECOV_TOKEN }}
|
|
26
29
|
release:
|
|
27
30
|
uses: vidavidorra/.github/.github/workflows/release.yml@24ea160cd3be95b9bbfb4853d71124d2046d0d0e # v7.0.0
|
|
28
31
|
needs:
|
|
@@ -33,4 +36,3 @@ jobs:
|
|
|
33
36
|
- code-coverage
|
|
34
37
|
secrets:
|
|
35
38
|
privateKey: ${{ secrets.RELEASE_PRIVATE_KEY }}
|
|
36
|
-
npmToken: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
package/dist/content/ci-cd.d.ts
CHANGED
|
@@ -9,6 +9,12 @@ declare const schema: z.ZodObject<{
|
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
pull_request: z.ZodNull;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
|
+
permissions: z.ZodObject<{
|
|
13
|
+
contents: z.ZodLiteral<"write">;
|
|
14
|
+
'id-token': z.ZodLiteral<"write">;
|
|
15
|
+
issues: z.ZodLiteral<"write">;
|
|
16
|
+
'pull-requests': z.ZodLiteral<"write">;
|
|
17
|
+
}, z.core.$strict>;
|
|
12
18
|
jobs: z.ZodObject<{
|
|
13
19
|
'lint-commit-messages': z.ZodObject<{
|
|
14
20
|
uses: z.ZodString;
|
|
@@ -25,17 +31,13 @@ declare const schema: z.ZodObject<{
|
|
|
25
31
|
'code-coverage': z.ZodObject<{
|
|
26
32
|
uses: z.ZodString;
|
|
27
33
|
needs: z.ZodTuple<[z.ZodLiteral<"lint">, z.ZodLiteral<"build">, z.ZodLiteral<"test">], null>;
|
|
28
|
-
secrets: z.ZodObject<{
|
|
29
|
-
codecovToken: z.ZodString;
|
|
30
|
-
}, z.core.$strip>;
|
|
31
34
|
}, z.core.$strip>;
|
|
32
35
|
release: z.ZodObject<{
|
|
33
36
|
uses: z.ZodString;
|
|
34
37
|
needs: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"lint-commit-messages">, z.ZodLiteral<"lint">, z.ZodLiteral<"build">, z.ZodLiteral<"test">, z.ZodLiteral<"code-coverage">]>>;
|
|
35
38
|
secrets: z.ZodObject<{
|
|
36
39
|
privateKey: z.ZodString;
|
|
37
|
-
|
|
38
|
-
}, z.core.$strip>;
|
|
40
|
+
}, z.core.$strict>;
|
|
39
41
|
}, z.core.$strip>;
|
|
40
42
|
}, z.core.$strict>;
|
|
41
43
|
}, z.core.$strict>;
|
package/dist/content/ci-cd.js
CHANGED
|
@@ -20,6 +20,12 @@ const schema = z.strictObject({
|
|
|
20
20
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
21
21
|
pull_request: z.null(),
|
|
22
22
|
}),
|
|
23
|
+
permissions: z.strictObject({
|
|
24
|
+
contents: z.literal('write'),
|
|
25
|
+
'id-token': z.literal('write'),
|
|
26
|
+
issues: z.literal('write'),
|
|
27
|
+
'pull-requests': z.literal('write'),
|
|
28
|
+
}),
|
|
23
29
|
jobs: z.strictObject({
|
|
24
30
|
'lint-commit-messages': job('lint-commit-messages.yml'),
|
|
25
31
|
lint: job('node-lint.yml'),
|
|
@@ -31,7 +37,6 @@ const schema = z.strictObject({
|
|
|
31
37
|
z.literal('build'),
|
|
32
38
|
z.literal('test'),
|
|
33
39
|
]),
|
|
34
|
-
secrets: z.object({ codecovToken: z.string() }),
|
|
35
40
|
}),
|
|
36
41
|
release: job('release.yml').extend({
|
|
37
42
|
needs: z
|
|
@@ -43,9 +48,8 @@ const schema = z.strictObject({
|
|
|
43
48
|
z.literal('code-coverage'),
|
|
44
49
|
]))
|
|
45
50
|
.length(5),
|
|
46
|
-
secrets: z.
|
|
51
|
+
secrets: z.strictObject({
|
|
47
52
|
privateKey: z.string(),
|
|
48
|
-
npmToken: z.string(),
|
|
49
53
|
}),
|
|
50
54
|
}),
|
|
51
55
|
}),
|
|
@@ -76,8 +80,8 @@ class CiCd extends File {
|
|
|
76
80
|
if (data.jobs?.release?.needs !== undefined) {
|
|
77
81
|
data.jobs.release.needs = data.jobs.release.needs.filter((action) => !removeFromRelease.includes(action));
|
|
78
82
|
}
|
|
79
|
-
if (!this._options.public) {
|
|
80
|
-
delete data.
|
|
83
|
+
if (!this._options.public && !this._options.reportCodeCoverage) {
|
|
84
|
+
delete data.permissions?.['id-token'];
|
|
81
85
|
}
|
|
82
86
|
const { sha, version } = this;
|
|
83
87
|
this._content = stringify(data).replaceAll(sha, `${sha}${version}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vidavidorra/create-project",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.1.0-beta.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Interactively create a GitHub project",
|
|
6
6
|
"keywords": [
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
"@semantic-release/changelog": "6.0.3",
|
|
214
214
|
"@semantic-release/exec": "7.1.0",
|
|
215
215
|
"@semantic-release/git": "10.0.1",
|
|
216
|
-
"@types/node": "24.9.
|
|
216
|
+
"@types/node": "24.9.2",
|
|
217
217
|
"@types/sinon": "17.0.4",
|
|
218
218
|
"@types/validate-npm-package-name": "4.0.2",
|
|
219
219
|
"@vidavidorra/commitlint-config": "7.1.2",
|