diff --git a/.github/workflows/build-site.yml b/.github/workflows/build-site.yml index e4285a1..ba954f7 100644 --- a/.github/workflows/build-site.yml +++ b/.github/workflows/build-site.yml @@ -24,7 +24,16 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - run: npm ci + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: ~/.npm + key: npm-${{ hashFiles('package-lock.json') }} + restore-keys: npm- + # fix git protocol https://github.com/orgs/community/discussions/26648#discussioncomment-3252721 + - run: git config --global url."git@github.com:".insteadOf git://github.com/ + - name: Install dependencies + run: npm ci --ignore-scripts - run: npm run build - name: Get compiled imagej.js run: bash get-imagej.sh diff --git a/get-imagej.bat b/get-imagej.bat index f2ee09f..42c9080 100644 --- a/get-imagej.bat +++ b/get-imagej.bat @@ -1,14 +1,14 @@ @echo off REM The compiled files will be saved in ./dist -REM download imagej 1.53j to make the transition smoother -curl -OL https://github.com/imjoy-team/ImageJA.JS/releases/download/1.53j/imagej-js-dist.tgz -tar -xvzf imagej-js-dist.tgz - REM download imagej 1.53m to make the transition smoother curl -OL https://github.com/imjoy-team/ImageJA.JS/releases/download/1.53m/imagej-js-dist.tgz tar -xvzf imagej-js-dist.tgz +REM download imagej 1.53m3 to make the transition smoother +curl -OL https://github.com/imjoy-team/ImageJA.JS/releases/download/1.53m3/imagej-js-dist.tgz +tar -xvzf imagej-js-dist.tgz + del imagej-js-dist.tgz if not exist dist mkdir dist diff --git a/get-imagej.sh b/get-imagej.sh index d3fd831..c86816f 100644 --- a/get-imagej.sh +++ b/get-imagej.sh @@ -2,14 +2,14 @@ set -e -# download imagej 1.53j to make the transition smoother -curl -OL https://github.com/imjoy-team/ImageJA.JS/releases/download/1.53j/imagej-js-dist.tgz -tar -xvzf imagej-js-dist.tgz - # download imagej 1.53m to make the transition smoother curl -OL https://github.com/imjoy-team/ImageJA.JS/releases/download/1.53m/imagej-js-dist.tgz tar -xvzf imagej-js-dist.tgz +# download imagej 1.53m3 to make the transition smoother +curl -OL https://github.com/imjoy-team/ImageJA.JS/releases/download/1.53m3/imagej-js-dist.tgz +tar -xvzf imagej-js-dist.tgz + rm imagej-js-dist.tgz mkdir -p dist