Skip to content

Commit

Permalink
docs: fixup compute-file-server-cli dependency build
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Nov 7, 2024
1 parent d622799 commit 8f03448
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 118 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,23 @@ jobs:
with:
node-version: 'lts/*'

- name: Cache Compute File Server CLI
id: cache-compute-file-server-cli
uses: actions/cache@v3
with:
path: "/home/runner/.cargo/bin/compute-file-server-cli"
key: crate-cache-compute-file-server-cli
- name: Install Compute File Server CLI
if: steps.cache-compute-file-server-cli.outputs.cache-hit != 'true'
run: cargo install compute-file-server-cli

- run: npm update
working-directory: ./documentation
- run: npm run add-fastly-prefix
working-directory: ./documentation
- run: npm run docusaurus docs:version "$(npm pkg get version --json --prefix=../ | jq -r)"
working-directory: ./documentation

- run: npm update
working-directory: ./documentation/app
- run: npm run build:files
Expand Down
111 changes: 1 addition & 110 deletions documentation/app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 3 additions & 7 deletions documentation/app/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
{
"license": "MIT",
"devDependencies": {
"@fastly/js-compute": "^3",
"@jakechampion/c-at-e-file-server-cli": "^0.0.2-main"
"@fastly/js-compute": "^3"
},
"type": "module",
"scripts": {
"build": "npm run build:app && npm run build:files",
"build:app": "js-compute-runtime src/index.js",
"build:files": "c-at-e-file-server local --toml fastly.toml --name site -- ../build/",
"build:files": "compute-file-server local --toml fastly.toml --name site -- ../build/",
"deploy": "npm run deploy:app && npm run deploy:files",
"deploy:app": "fastly compute publish",
"deploy:files": "c-at-e-file-server upload --name 'js-docs-site' -- ../build/",
"deploy:files": "compute-file-server upload --name 'js-docs-site' -- ../build/",
"start": "fastly compute serve"
},
"dependencies": {
"@jakechampion/c-at-e-file-server": "^0.0.2-main"
}
}

0 comments on commit 8f03448

Please sign in to comment.