From 8f3b9ebe006afe9e32df4ed81891cb5ee9c01407 Mon Sep 17 00:00:00 2001 From: Psychotoxical Date: Wed, 8 Apr 2026 11:30:05 +0200 Subject: [PATCH] ci: use setup-node built-in npm cache instead of manual cache step --- .github/workflows/release.yml | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index af841a22..6c83ac29 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,12 +19,7 @@ jobs: uses: actions/setup-node@v5 with: node-version: lts/* - - name: cache npm - uses: actions/cache@v4 - with: - path: ~/.npm - key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }} - restore-keys: ${{ runner.os }}-npm- + cache: 'npm' - name: get version id: get-version run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT @@ -97,12 +92,7 @@ jobs: uses: actions/setup-node@v5 with: node-version: lts/* - - name: cache npm - uses: actions/cache@v4 - with: - path: ~/.npm - key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }} - restore-keys: ${{ runner.os }}-npm- + cache: 'npm' - name: install Rust stable uses: dtolnay/rust-toolchain@stable with: @@ -141,13 +131,7 @@ jobs: uses: actions/setup-node@v5 with: node-version: lts/* - - - name: cache npm - uses: actions/cache@v4 - with: - path: ~/.npm - key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }} - restore-keys: ${{ runner.os }}-npm- + cache: 'npm' - name: install Rust stable uses: dtolnay/rust-toolchain@stable