mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-14 10:10:34 +08:00
CI: enable cache for wrangler
This commit is contained in:
parent
ac85a61a7c
commit
395d9e44cf
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
@ -90,6 +90,15 @@ jobs:
|
|||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Get NPM cache directory path
|
||||||
|
id: npm_cache_path
|
||||||
|
shell: sh
|
||||||
|
run: echo dir=$(npm config get cache) >> $GITHUB_OUTPUT
|
||||||
|
- name: Cache NPM cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ${{ steps.npm_cache_path.outputs.dir }}
|
||||||
|
key: ${{ runner.os }}-deploy-to-cloudflare-npm
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build-artifact-${{ github.ref_name }}
|
name: build-artifact-${{ github.ref_name }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user