From c8d0880c6c9b21ccabe70755171047de071e1844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Kra=C3=9Fmann?= Date: Tue, 2 Apr 2024 20:53:54 +0200 Subject: [PATCH] Add NPM caching --- .github/workflows/script-tsumbeta.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/script-tsumbeta.yml b/.github/workflows/script-tsumbeta.yml index 9fb3c966..d6a64d64 100644 --- a/.github/workflows/script-tsumbeta.yml +++ b/.github/workflows/script-tsumbeta.yml @@ -14,6 +14,17 @@ jobs: steps: - name: Check out the repository to the runner uses: actions/checkout@v4 + - name: Get npm cache directory + id: npm-cache-dir + shell: bash + run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} + - name: Cache + uses: actions/cache@v4 + with: + path: ${{ steps.npm-cache-dir.outputs.dir }} + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- - name: Make the script files executable run: chmod +x build.sh - name: Compile sources and create index.zip