diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index da594e7..f5ef4c6 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -11,6 +11,8 @@ on: jobs: build: runs-on: ubuntu-latest + env: + RUNNER_TOOL_CACHE: /toolcache steps: - name: Checkout @@ -20,12 +22,21 @@ jobs: uses: actions/setup-node@v4 with: node-version: "20" + cache: 'yarn' - name: Enable Corepack and Yarn run: | corepack enable corepack prepare yarn@stable --activate + - name: Cache node_modules + uses: actions/cache@v4 + with: + path: node_modules + key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }} + restore-keys: | + ${{ runner.os }}-node-modules- + - name: Install dependencies run: yarn install --immutable