@mp-lb/arcnet 0.7.17 → 0.7.19
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 +10 -0
- package/dist/checkIdentity.d.ts.map +1 -1
- package/dist/checkIdentity.js +2 -0
- package/dist/checkIdentity.js.map +1 -1
- package/dist/checkProjectSettings.d.ts +3 -0
- package/dist/checkProjectSettings.d.ts.map +1 -0
- package/dist/checkProjectSettings.js +9 -0
- package/dist/checkProjectSettings.js.map +1 -0
- package/dist/createCli.d.ts.map +1 -1
- package/dist/createCli.js +1 -0
- package/dist/createCli.js.map +1 -1
- package/dist/createProject.d.ts +1 -1
- package/dist/createProject.d.ts.map +1 -1
- package/dist/createProject.js +6 -2
- package/dist/createProject.js.map +1 -1
- package/dist/deploy.d.ts.map +1 -1
- package/dist/deploy.js +17 -5
- package/dist/deploy.js.map +1 -1
- package/dist/readNodeVersion.d.ts +2 -0
- package/dist/readNodeVersion.d.ts.map +1 -0
- package/dist/readNodeVersion.js +11 -0
- package/dist/readNodeVersion.js.map +1 -0
- package/dist/resolveDeploymentProjects.d.ts +1 -1
- package/dist/resolveDeploymentProjects.d.ts.map +1 -1
- package/dist/resolveDeploymentProjects.js +9 -7
- package/dist/resolveDeploymentProjects.js.map +1 -1
- package/dist/resolveVercelSite.d.ts.map +1 -1
- package/dist/resolveVercelSite.js +17 -6
- package/dist/resolveVercelSite.js.map +1 -1
- package/dist/runVercel.d.ts.map +1 -1
- package/dist/runVercel.js +1 -1
- package/dist/runVercel.js.map +1 -1
- package/dist/secrets/writeSecretsWorkflow.js +3 -3
- package/dist/setupArcnet.d.ts.map +1 -1
- package/dist/setupArcnet.js +11 -4
- package/dist/setupArcnet.js.map +1 -1
- package/dist/setupVercel.d.ts.map +1 -1
- package/dist/setupVercel.js +8 -2
- package/dist/setupVercel.js.map +1 -1
- package/dist/vercelGitFiles.d.ts +3 -0
- package/dist/vercelGitFiles.d.ts.map +1 -0
- package/dist/vercelGitFiles.js +29 -0
- package/dist/vercelGitFiles.js.map +1 -0
- package/docs/public/llms-full.txt +10 -0
- package/environments/mp-lb.yaml +1 -1
- package/package.json +2 -2
- package/src/checkIdentity.ts +2 -0
- package/src/checkProjectSettings.ts +19 -0
- package/src/createCli.ts +1 -0
- package/src/createProject.ts +6 -1
- package/src/deploy.ts +37 -5
- package/src/readNodeVersion.ts +11 -0
- package/src/resolveDeploymentProjects.ts +38 -13
- package/src/resolveVercelSite.ts +32 -9
- package/src/runVercel.ts +2 -3
- package/src/secrets/writeSecretsWorkflow.ts +3 -3
- package/src/setupArcnet.ts +13 -3
- package/src/setupVercel.ts +9 -3
- package/src/vercelGitFiles.ts +45 -0
- package/templates/deploy-arc.yaml +10 -9
- package/templates/deploy-mixed.yaml +10 -9
- package/templates/deploy-vercel.yaml +7 -6
- package/templates/network.yaml +1 -1
- package/templates/vercel-static/module.yaml +5 -4
|
@@ -16,14 +16,15 @@ jobs:
|
|
|
16
16
|
account: ${{ steps.config.outputs.account }}
|
|
17
17
|
registry: ${{ steps.config.outputs.registry }}
|
|
18
18
|
steps:
|
|
19
|
-
- uses: actions/checkout@
|
|
20
|
-
- uses: pnpm/action-setup@
|
|
19
|
+
- uses: actions/checkout@v5
|
|
20
|
+
- uses: pnpm/action-setup@v5
|
|
21
21
|
with:
|
|
22
22
|
package_json_file: package.json
|
|
23
|
-
- uses: actions/setup-node@
|
|
23
|
+
- uses: actions/setup-node@v5
|
|
24
24
|
with:
|
|
25
25
|
node-version-file: .node-version
|
|
26
26
|
- run: pnpm install --frozen-lockfile
|
|
27
|
+
- run: pnpm lint && pnpm typecheck && pnpm test && pnpm build
|
|
27
28
|
- run: pnpm exec arcnet check
|
|
28
29
|
- id: config
|
|
29
30
|
run: pnpm exec arcnet ci
|
|
@@ -38,23 +39,23 @@ jobs:
|
|
|
38
39
|
contents: read
|
|
39
40
|
id-token: write
|
|
40
41
|
steps:
|
|
41
|
-
- uses: actions/checkout@
|
|
42
|
-
- uses: pnpm/action-setup@
|
|
42
|
+
- uses: actions/checkout@v5
|
|
43
|
+
- uses: pnpm/action-setup@v5
|
|
43
44
|
with:
|
|
44
45
|
package_json_file: package.json
|
|
45
|
-
- uses: actions/setup-node@
|
|
46
|
+
- uses: actions/setup-node@v5
|
|
46
47
|
with:
|
|
47
48
|
node-version-file: .node-version
|
|
48
49
|
- run: pnpm install --frozen-lockfile
|
|
49
|
-
- uses: google-github-actions/auth@
|
|
50
|
+
- uses: google-github-actions/auth@v3
|
|
50
51
|
with:
|
|
51
52
|
workload_identity_provider: ${{ needs.configuration.outputs.provider }}
|
|
52
53
|
service_account: ${{ needs.configuration.outputs.account }}
|
|
53
|
-
- uses: google-github-actions/setup-gcloud@
|
|
54
|
+
- uses: google-github-actions/setup-gcloud@v3
|
|
54
55
|
- run: gcloud auth configure-docker "$REGISTRY" --quiet
|
|
55
56
|
env:
|
|
56
57
|
REGISTRY: ${{ needs.configuration.outputs.registry }}
|
|
57
|
-
- uses: hashicorp/setup-terraform@
|
|
58
|
+
- uses: hashicorp/setup-terraform@v4
|
|
58
59
|
with:
|
|
59
60
|
terraform_version: 1.15.6
|
|
60
61
|
terraform_wrapper: false
|
|
@@ -12,12 +12,13 @@ jobs:
|
|
|
12
12
|
configuration:
|
|
13
13
|
runs-on: blacksmith-4vcpu-ubuntu-2404
|
|
14
14
|
steps:
|
|
15
|
-
- uses: actions/checkout@
|
|
16
|
-
- uses: actions/setup-node@
|
|
15
|
+
- uses: actions/checkout@v5
|
|
16
|
+
- uses: actions/setup-node@v5
|
|
17
17
|
with:
|
|
18
18
|
node-version-file: .node-version
|
|
19
|
-
- uses: pnpm/action-setup@
|
|
19
|
+
- uses: pnpm/action-setup@v5
|
|
20
20
|
- run: pnpm install --frozen-lockfile
|
|
21
|
+
- run: pnpm lint && pnpm typecheck && pnpm test && pnpm build
|
|
21
22
|
- run: pnpm exec arcnet check
|
|
22
23
|
- id: config
|
|
23
24
|
run: pnpm exec arcnet ci
|
|
@@ -29,11 +30,11 @@ jobs:
|
|
|
29
30
|
runs-on: blacksmith-4vcpu-ubuntu-2404
|
|
30
31
|
timeout-minutes: 30
|
|
31
32
|
steps:
|
|
32
|
-
- uses: actions/checkout@
|
|
33
|
-
- uses: actions/setup-node@
|
|
33
|
+
- uses: actions/checkout@v5
|
|
34
|
+
- uses: actions/setup-node@v5
|
|
34
35
|
with:
|
|
35
36
|
node-version-file: .node-version
|
|
36
|
-
- uses: pnpm/action-setup@
|
|
37
|
+
- uses: pnpm/action-setup@v5
|
|
37
38
|
- run: pnpm install --frozen-lockfile
|
|
38
39
|
- name: Deploy referenced static sites
|
|
39
40
|
run: pnpm exec arcnet deploy
|
package/templates/network.yaml
CHANGED
|
@@ -85,7 +85,7 @@ module-defaults:
|
|
|
85
85
|
gcp-project-id: "{gcp-project}"
|
|
86
86
|
state-bucket: arcnet-platform-terraform-state
|
|
87
87
|
network-project: "{network-project}"
|
|
88
|
-
billing-account: "
|
|
88
|
+
billing-account: "" # Opt in only when CI manages budgets.
|
|
89
89
|
gcp-project:
|
|
90
90
|
project-id: "{gcp-project}"
|
|
91
91
|
billing-account: "{billing-account}"
|
|
@@ -30,21 +30,22 @@ hooks:
|
|
|
30
30
|
VERCEL_ORG_ID="$(curl -fsS -H "Authorization: Bearer ${VERCEL_API_TOKEN}" https://api.vercel.com/v2/user \
|
|
31
31
|
| node -e 'let d="";process.stdin.on("data",c=>d+=c);process.stdin.on("end",()=>console.log(JSON.parse(d).user.id))')"
|
|
32
32
|
export VERCEL_ORG_ID
|
|
33
|
+
export VERCEL_TOKEN="${VERCEL_API_TOKEN}"
|
|
33
34
|
if [ -n "${ARC_VERCEL_BUILD}" ]; then
|
|
34
35
|
bash -c "${ARC_VERCEL_BUILD}"
|
|
35
36
|
fi
|
|
36
37
|
if [ "${ARC_VERCEL_REMOTE_BUILD}" = "true" ]; then
|
|
37
|
-
npx -y vercel@63.1.2 pull --yes --environment=production
|
|
38
|
+
npx -y vercel@63.1.2 pull --yes --environment=production
|
|
38
39
|
while IFS= read -r kv; do
|
|
39
40
|
if [ -n "${kv}" ]; then
|
|
40
41
|
export "${kv?}"
|
|
41
42
|
fi
|
|
42
43
|
done <<< "$(node -e 'const env=JSON.parse(process.env.ARC_SERVICE_ENV||"{}");for(const [k,v] of Object.entries(env))console.log(`${k}=${v}`)')"
|
|
43
|
-
npx -y vercel@63.1.2 build --prod
|
|
44
|
-
npx -y vercel@63.1.2 deploy --prebuilt --prod --yes
|
|
44
|
+
npx -y vercel@63.1.2 build --prod
|
|
45
|
+
npx -y vercel@63.1.2 deploy --prebuilt --prod --yes
|
|
45
46
|
exit 0
|
|
46
47
|
fi
|
|
47
|
-
args=(--prod --yes
|
|
48
|
+
args=(--prod --yes)
|
|
48
49
|
if [ -n "${ARC_VERCEL_LOCAL_CONFIG}" ]; then
|
|
49
50
|
args+=(--local-config "${ARC_VERCEL_LOCAL_CONFIG}")
|
|
50
51
|
fi
|