diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b1b5820..e795bfe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,11 +31,20 @@ jobs: - name: Setup dotnet-script run: ${{ env.DOTNET_INSTALL_DIR }}\dotnet tool install -g dotnet-script - + + - name: Cache Torchlight + id: cache-torchlight + uses: actions/cache@v3 + with: + path: ./node_modules/@torchlight-api + key: ${{ runner.os }}-torchlight-${{ hashFiles('**/package-lock.json') }} + restore-keys: ${{ runner.os }}-torchlight- + - name: Setup node uses: actions/setup-node@v2 - name: Setup torchlight + if: ${{ steps.cache-torchlight.outputs.cache-hit != 'true' }} run: npm i @torchlight-api/torchlight-cli - name: Set dotnet path @@ -54,4 +63,3 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./output -