From a6d084be67309f150f16c40319b9b61ead77dd0a Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Sat, 13 Apr 2024 18:15:02 -0700 Subject: [PATCH] ci: fix npm http-server for linkchecker (#49) --- .github/workflows/deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index eae5ef7..075b41d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,9 +28,11 @@ jobs: publish_dir: ./build publish_branch: build - name: Serve the site # needed so we can run the link checker + env: + NPM_CONFIG_PREFIX: "~/.npm-global" run: | npm install -g http-server - http-server build -p 8080 & + ~/.npm-global/bin/http-server build -p 8080 & - name: Install filiph/linkcheck run: | wget https://github.com/filiph/linkcheck/releases/download/3.0.0/linkcheck-3.0.0-linux-x64.tar.gz