diff --git a/.github/workflows/GHPages.yml b/.github/workflows/GHPages.yml index 0c8fbd3e..48a47a57 100644 --- a/.github/workflows/GHPages.yml +++ b/.github/workflows/GHPages.yml @@ -13,7 +13,7 @@ jobs: - uses: docker://pandoc/latex:2.9 with: args: | - sh build-resources-with-pandoc.sh + build-resources-with-pandoc.sh - name: Install Packages run: | npm i -f diff --git a/.github/workflows/test-build-resources-with-pandoc.yml b/.github/workflows/test-build-resources-with-pandoc.yml index 3398838d..8eefd904 100644 --- a/.github/workflows/test-build-resources-with-pandoc.yml +++ b/.github/workflows/test-build-resources-with-pandoc.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/setup-node@v4 - uses: docker://pandoc/latex:2.9 with: - args: sh build-resources-with-pandoc.sh + args: build-resources-with-pandoc.sh - name: Archive resources uses: actions/upload-artifact@v4 with: diff --git a/build-resources-with-pandoc.sh b/build-resources-with-pandoc.sh index d655fb82..8df5bbed 100644 --- a/build-resources-with-pandoc.sh +++ b/build-resources-with-pandoc.sh @@ -1,11 +1,16 @@ +#!/bin/sh +set -e + cat /etc/alpine-release apk update -apk add --no-cache nodejs-current=~18 npm=~9 --repository="http://dl-cdn.alpinelinux.org/alpine/edge/community" +apk add nodejs npm +apk add --update chromium node -v npm -v -# export PUPPETEER_SKIP_DOWNLOAD='true' +chromium-browser --version +export PUPPETEER_SKIP_DOWNLOAD='true' # export MERMAID_FILTER_FORMAT='svg' -npm i -g mermaid-filter +npm i -g mermaid-filter@1.4.5 ROOT_DIR=`pwd` CSS_PATH="${ROOT_DIR}/documents/common/pandoc_styles/css/style.css"