mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-14 10:10:34 +08:00
CI: always update wrangler npm cache
This commit is contained in:
parent
e7ec9f5e5c
commit
feb7dc4ba6
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
@ -148,8 +148,7 @@ jobs:
|
|||||||
id: npm_cache_path
|
id: npm_cache_path
|
||||||
shell: sh
|
shell: sh
|
||||||
run: echo dir=$(npm config get cache) >> $GITHUB_OUTPUT
|
run: echo dir=$(npm config get cache) >> $GITHUB_OUTPUT
|
||||||
- name: Cache NPM cache
|
- uses: actions/cache/restore@v4
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
${{ steps.npm_cache_path.outputs.dir }}
|
${{ steps.npm_cache_path.outputs.dir }}
|
||||||
@ -166,6 +165,12 @@ jobs:
|
|||||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
command: pages deploy public --project-name=sukkaw-ruleset --commit-dirty=true --branch=main
|
command: pages deploy public --project-name=sukkaw-ruleset --commit-dirty=true --branch=main
|
||||||
wranglerVersion: '3.90.0'
|
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:
|
deploy_to_github_gitlab:
|
||||||
needs:
|
needs:
|
||||||
- build
|
- build
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user