From feb7dc4ba67e79fd6b3abe1a9716ed53c4eb37b7 Mon Sep 17 00:00:00 2001 From: SukkaW Date: Wed, 19 Mar 2025 23:45:53 +0800 Subject: [PATCH] CI: always update wrangler npm cache --- .github/workflows/main.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9c57efa8..1148aac5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -148,8 +148,7 @@ jobs: id: npm_cache_path shell: sh run: echo dir=$(npm config get cache) >> $GITHUB_OUTPUT - - name: Cache NPM cache - uses: actions/cache@v4 + - uses: actions/cache/restore@v4 with: path: | ${{ steps.npm_cache_path.outputs.dir }} @@ -166,6 +165,12 @@ jobs: accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} command: pages deploy public --project-name=sukkaw-ruleset --commit-dirty=true --branch=main wranglerVersion: '3.90.0' + - uses: actions/cache/save@v4 + with: + path: | + ${{ steps.npm_cache_path.outputs.dir }} + node_modules + key: ${{ runner.os }}-${{ runner.arch }}-deploy-to-cloudflare-npm deploy_to_github_gitlab: needs: - build