Skip to content

Commit 434bda4

Browse files
author
Guy Bedford
committed
fix: fixup compute-file-server-cli dependency build (#1037)
1 parent d622799 commit 434bda4

File tree

3 files changed

+15
-118
lines changed

3 files changed

+15
-118
lines changed

.github/workflows/release-please.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,23 @@ jobs:
4343
with:
4444
node-version: 'lts/*'
4545

46+
- name: Cache Compute File Server CLI
47+
id: cache-compute-file-server-cli
48+
uses: actions/cache@v3
49+
with:
50+
path: "/home/runner/.cargo/bin/compute-file-server-cli"
51+
key: crate-cache-compute-file-server-cli
52+
- name: Install Compute File Server CLI
53+
if: steps.cache-compute-file-server-cli.outputs.cache-hit != 'true'
54+
run: cargo install compute-file-server-cli
55+
4656
- run: npm update
4757
working-directory: ./documentation
4858
- run: npm run add-fastly-prefix
4959
working-directory: ./documentation
5060
- run: npm run docusaurus docs:version "$(npm pkg get version --json --prefix=../ | jq -r)"
5161
working-directory: ./documentation
52-
62+
5363
- run: npm update
5464
working-directory: ./documentation/app
5565
- run: npm run build:files

documentation/app/package-lock.json

Lines changed: 1 addition & 110 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

documentation/app/package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
{
22
"license": "MIT",
33
"devDependencies": {
4-
"@fastly/js-compute": "^3",
5-
"@jakechampion/c-at-e-file-server-cli": "^0.0.2-main"
4+
"@fastly/js-compute": "^3"
65
},
76
"type": "module",
87
"scripts": {
98
"build": "npm run build:app && npm run build:files",
109
"build:app": "js-compute-runtime src/index.js",
11-
"build:files": "c-at-e-file-server local --toml fastly.toml --name site -- ../build/",
10+
"build:files": "compute-file-server local --toml fastly.toml --name site -- ../build/",
1211
"deploy": "npm run deploy:app && npm run deploy:files",
1312
"deploy:app": "fastly compute publish",
14-
"deploy:files": "c-at-e-file-server upload --name 'js-docs-site' -- ../build/",
13+
"deploy:files": "compute-file-server upload --name 'js-docs-site' -- ../build/",
1514
"start": "fastly compute serve"
16-
},
17-
"dependencies": {
18-
"@jakechampion/c-at-e-file-server": "^0.0.2-main"
1915
}
2016
}

0 commit comments

Comments
 (0)