@mp-lb/arcnet 0.7.13 → 0.7.14
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/README.md +8 -0
- package/dist/secrets/writeSecretsWorkflow.d.ts.map +1 -1
- package/dist/secrets/writeSecretsWorkflow.js +8 -1
- package/dist/secrets/writeSecretsWorkflow.js.map +1 -1
- package/docs/public/llms-full.txt +8 -0
- package/package.json +1 -1
- package/src/secrets/writeSecretsWorkflow.ts +8 -1
- package/templates/deploy-arc.yaml +2 -2
- package/templates/deploy-mixed.yaml +2 -2
- package/templates/deploy-vercel.yaml +2 -2
package/README.md
CHANGED
|
@@ -26,3 +26,11 @@ For a new Vercel site, set `mode: new` and its `projectName`. The first deployme
|
|
|
26
26
|
In GitHub Actions, secret commands require the configured repository on `main`. A desktop release may also use `arcnet env export --consumer desktop` on a version tag (`v<major>.<minor>.<patch>`); other consumers remain restricted to `main`.
|
|
27
27
|
|
|
28
28
|
The standing `CLOUDFLARE_API_TOKEN` should have Zone Read and DNS Write for all zones in the environment's Cloudflare account, including future zones. Then a new zone needs only a change to `.arcnet/arcnet.yaml` and a push; deployment checks zone access before Terraform or Vercel changes. Google Cloud Run domain mapping also requires base-domain ownership: `arcnet environment domain-owner` delegates an already verified domain to the deploy account. Declarative Vercel domain attachment and DNS reconciliation are supported; project domain add/remove CLI and full environment bootstrap/teardown remain unimplemented.
|
|
29
|
+
|
|
30
|
+
### Project tool versions
|
|
31
|
+
|
|
32
|
+
Deployment workflow templates read the exact Node version from the project root
|
|
33
|
+
`.node-version` and pnpm from `package.json#packageManager`. Create the Node
|
|
34
|
+
version file before installing a deployment workflow, and keep the deployed
|
|
35
|
+
runtime on a compatible Node major. Generated secrets-validation workflows use
|
|
36
|
+
the same file when present; standalone projects without it retain Node 22.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeSecretsWorkflow.d.ts","sourceRoot":"","sources":["../../src/secrets/writeSecretsWorkflow.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,oBAAoB,GAC/B,QAAQ,aAAa,EACrB,MAAM,MAAM,EACZ,YAAY,MAAM,
|
|
1
|
+
{"version":3,"file":"writeSecretsWorkflow.d.ts","sourceRoot":"","sources":["../../src/secrets/writeSecretsWorkflow.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,oBAAoB,GAC/B,QAAQ,aAAa,EACrB,MAAM,MAAM,EACZ,YAAY,MAAM,SAiFnB,CAAC"}
|
|
@@ -29,6 +29,8 @@ export const writeSecretsWorkflow = (config, root, configFile) => {
|
|
|
29
29
|
".arcnet/**",
|
|
30
30
|
".github/workflows/validate-arcnet-secrets.yaml",
|
|
31
31
|
"package.json",
|
|
32
|
+
".node-version",
|
|
33
|
+
"pnpm-workspace.yaml",
|
|
32
34
|
"pnpm-lock.yaml",
|
|
33
35
|
],
|
|
34
36
|
},
|
|
@@ -45,7 +47,12 @@ export const writeSecretsWorkflow = (config, root, configFile) => {
|
|
|
45
47
|
with: { "persist-credentials": false },
|
|
46
48
|
},
|
|
47
49
|
{ uses: "pnpm/action-setup@v4" },
|
|
48
|
-
{
|
|
50
|
+
{
|
|
51
|
+
uses: "actions/setup-node@v4",
|
|
52
|
+
with: existsSync(safeTargetPath(root, ".node-version"))
|
|
53
|
+
? { "node-version-file": ".node-version" }
|
|
54
|
+
: { "node-version": 22 },
|
|
55
|
+
},
|
|
49
56
|
{ run: "pnpm install --frozen-lockfile --ignore-scripts" },
|
|
50
57
|
{
|
|
51
58
|
name: "Decrypt, merge and validate selected keys",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeSecretsWorkflow.js","sourceRoot":"","sources":["../../src/secrets/writeSecretsWorkflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,E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CAAC,UAAU,sCAAsC;oBACpF,SAAS,EAAE,eAAe;oBAC1B,iBAAiB,EAAE,EAAE;oBACrB,KAAK,EAAE;wBACL;4BACE,IAAI,EAAE,qBAAqB;4BAC3B,IAAI,EAAE,EAAE,qBAAqB,EAAE,KAAK,EAAE;yBACvC;wBACD,EAAE,IAAI,EAAE,sBAAsB,EAAE;wBAChC;4BACE,IAAI,EAAE,uBAAuB;4BAC7B,IAAI,EAAE,UAAU,CAAC,cAAc,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;gCACrD,CAAC,CAAC,EAAE,mBAAmB,EAAE,eAAe,EAAE;gCAC1C,CAAC,CAAC,EAAE,cAAc,EAAE,EAAE,EAAE;yBAC3B;wBACD,EAAE,GAAG,EAAE,iDAAiD,EAAE;wBAC1D;4BACE,IAAI,EAAE,2CAA2C;4BACjD,GAAG,EAAE,4BAA4B;4BACjC,GAAG;yBACJ;qBACF;iBACF;aACF;SACF,CAAC,CACL,CAAC;IAEF,oBAAoB,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;AAC3C,CAAC,CAAC"}
|
|
@@ -27,6 +27,14 @@ In GitHub Actions, secret commands require the configured repository on `main`.
|
|
|
27
27
|
|
|
28
28
|
The standing `CLOUDFLARE_API_TOKEN` should have Zone Read and DNS Write for all zones in the environment's Cloudflare account, including future zones. Then a new zone needs only a change to `.arcnet/arcnet.yaml` and a push; deployment checks zone access before Terraform or Vercel changes. Google Cloud Run domain mapping also requires base-domain ownership: `arcnet environment domain-owner` delegates an already verified domain to the deploy account. Declarative Vercel domain attachment and DNS reconciliation are supported; project domain add/remove CLI and full environment bootstrap/teardown remain unimplemented.
|
|
29
29
|
|
|
30
|
+
### Project tool versions
|
|
31
|
+
|
|
32
|
+
Deployment workflow templates read the exact Node version from the project root
|
|
33
|
+
`.node-version` and pnpm from `package.json#packageManager`. Create the Node
|
|
34
|
+
version file before installing a deployment workflow, and keep the deployed
|
|
35
|
+
runtime on a compatible Node major. Generated secrets-validation workflows use
|
|
36
|
+
the same file when present; standalone projects without it retain Node 22.
|
|
37
|
+
|
|
30
38
|
# ArcNet command reference
|
|
31
39
|
|
|
32
40
|
Generated from the CLI command tree.
|
package/package.json
CHANGED
|
@@ -52,6 +52,8 @@ export const writeSecretsWorkflow = (
|
|
|
52
52
|
".arcnet/**",
|
|
53
53
|
".github/workflows/validate-arcnet-secrets.yaml",
|
|
54
54
|
"package.json",
|
|
55
|
+
".node-version",
|
|
56
|
+
"pnpm-workspace.yaml",
|
|
55
57
|
"pnpm-lock.yaml",
|
|
56
58
|
],
|
|
57
59
|
},
|
|
@@ -68,7 +70,12 @@ export const writeSecretsWorkflow = (
|
|
|
68
70
|
with: { "persist-credentials": false },
|
|
69
71
|
},
|
|
70
72
|
{ uses: "pnpm/action-setup@v4" },
|
|
71
|
-
{
|
|
73
|
+
{
|
|
74
|
+
uses: "actions/setup-node@v4",
|
|
75
|
+
with: existsSync(safeTargetPath(root, ".node-version"))
|
|
76
|
+
? { "node-version-file": ".node-version" }
|
|
77
|
+
: { "node-version": 22 },
|
|
78
|
+
},
|
|
72
79
|
{ run: "pnpm install --frozen-lockfile --ignore-scripts" },
|
|
73
80
|
{
|
|
74
81
|
name: "Decrypt, merge and validate selected keys",
|
|
@@ -22,7 +22,7 @@ jobs:
|
|
|
22
22
|
package_json_file: package.json
|
|
23
23
|
- uses: actions/setup-node@v4
|
|
24
24
|
with:
|
|
25
|
-
node-version:
|
|
25
|
+
node-version-file: .node-version
|
|
26
26
|
- run: pnpm install --frozen-lockfile
|
|
27
27
|
- run: pnpm exec arcnet check
|
|
28
28
|
- id: config
|
|
@@ -44,7 +44,7 @@ jobs:
|
|
|
44
44
|
package_json_file: package.json
|
|
45
45
|
- uses: actions/setup-node@v4
|
|
46
46
|
with:
|
|
47
|
-
node-version:
|
|
47
|
+
node-version-file: .node-version
|
|
48
48
|
- run: pnpm install --frozen-lockfile
|
|
49
49
|
- uses: google-github-actions/auth@v2
|
|
50
50
|
with:
|
|
@@ -22,7 +22,7 @@ jobs:
|
|
|
22
22
|
package_json_file: package.json
|
|
23
23
|
- uses: actions/setup-node@v4
|
|
24
24
|
with:
|
|
25
|
-
node-version:
|
|
25
|
+
node-version-file: .node-version
|
|
26
26
|
- run: pnpm install --frozen-lockfile
|
|
27
27
|
- run: pnpm exec arcnet check
|
|
28
28
|
- id: config
|
|
@@ -44,7 +44,7 @@ jobs:
|
|
|
44
44
|
package_json_file: package.json
|
|
45
45
|
- uses: actions/setup-node@v4
|
|
46
46
|
with:
|
|
47
|
-
node-version:
|
|
47
|
+
node-version-file: .node-version
|
|
48
48
|
- run: pnpm install --frozen-lockfile
|
|
49
49
|
- uses: google-github-actions/auth@v2
|
|
50
50
|
with:
|
|
@@ -15,7 +15,7 @@ jobs:
|
|
|
15
15
|
- uses: actions/checkout@v4
|
|
16
16
|
- uses: actions/setup-node@v4
|
|
17
17
|
with:
|
|
18
|
-
node-version:
|
|
18
|
+
node-version-file: .node-version
|
|
19
19
|
- uses: pnpm/action-setup@v4
|
|
20
20
|
- run: pnpm install --frozen-lockfile
|
|
21
21
|
- run: pnpm exec arcnet check
|
|
@@ -32,7 +32,7 @@ jobs:
|
|
|
32
32
|
- uses: actions/checkout@v4
|
|
33
33
|
- uses: actions/setup-node@v4
|
|
34
34
|
with:
|
|
35
|
-
node-version:
|
|
35
|
+
node-version-file: .node-version
|
|
36
36
|
- uses: pnpm/action-setup@v4
|
|
37
37
|
- run: pnpm install --frozen-lockfile
|
|
38
38
|
- name: Deploy referenced static sites
|