update actions cache dir
parent
cf942121dd
commit
0e8e287fe2
|
@ -18,8 +18,7 @@ runs:
|
||||||
id: cache-npm
|
id: cache-npm
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: ${{ env.NPM_CACHE }}
|
||||||
${{ env.NPM_CACHE }}
|
|
||||||
key: ${{ runner.os }}-npm-cache-${{ hashFiles('package-lock.json') }}
|
key: ${{ runner.os }}-npm-cache-${{ hashFiles('package-lock.json') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-npm-cache-
|
${{ runner.os }}-npm-cache-
|
||||||
|
|
|
@ -43,14 +43,18 @@ jobs:
|
||||||
Windows:
|
Windows:
|
||||||
name: Windows
|
name: Windows
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
env:
|
|
||||||
NPM_CACHE: '%LocalAppData%/npm-cache'
|
|
||||||
# needs: CheckCode
|
# needs: CheckCode
|
||||||
steps:
|
steps:
|
||||||
- name: Check out git repository
|
- name: Check out git repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Get npm cache directory
|
||||||
|
shell: pwsh
|
||||||
|
run: echo "NPM_CACHE=$(npm config get cache)" >> $env:GITHUB_ENV
|
||||||
|
|
||||||
- name: Setup Node Env
|
- name: Setup Node Env
|
||||||
|
env:
|
||||||
|
NPM_CACHE: ${{ env.NPM_CACHE }}
|
||||||
uses: ./.github/actions/setup
|
uses: ./.github/actions/setup
|
||||||
|
|
||||||
- name: Build src code
|
- name: Build src code
|
||||||
|
@ -130,8 +134,6 @@ jobs:
|
||||||
name: Mac
|
name: Mac
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
# needs: CheckCode
|
# needs: CheckCode
|
||||||
env:
|
|
||||||
NPM_CACHE: ~/.npm
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out git repository
|
- name: Check out git repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -143,7 +145,13 @@ jobs:
|
||||||
source ~/.venv/bin/activate
|
source ~/.venv/bin/activate
|
||||||
python3 -m pip install setuptools
|
python3 -m pip install setuptools
|
||||||
|
|
||||||
|
- name: Get npm cache directory
|
||||||
|
shell: bash
|
||||||
|
run: echo "NPM_CACHE=$(npm config get cache)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Setup Node Env
|
- name: Setup Node Env
|
||||||
|
env:
|
||||||
|
NPM_CACHE: ${{ env.NPM_CACHE }}
|
||||||
uses: ./.github/actions/setup
|
uses: ./.github/actions/setup
|
||||||
|
|
||||||
- name: Build src code
|
- name: Build src code
|
||||||
|
@ -177,8 +185,6 @@ jobs:
|
||||||
Linux:
|
Linux:
|
||||||
name: Linux
|
name: Linux
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
NPM_CACHE: ~/.npm
|
|
||||||
# needs: CheckCode
|
# needs: CheckCode
|
||||||
steps:
|
steps:
|
||||||
- name: Install package
|
- name: Install package
|
||||||
|
@ -187,7 +193,13 @@ jobs:
|
||||||
- name: Check out git repository
|
- name: Check out git repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Get npm cache directory
|
||||||
|
shell: bash
|
||||||
|
run: echo "NPM_CACHE=$(npm config get cache)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Setup Node Env
|
- name: Setup Node Env
|
||||||
|
env:
|
||||||
|
NPM_CACHE: ${{ env.NPM_CACHE }}
|
||||||
uses: ./.github/actions/setup
|
uses: ./.github/actions/setup
|
||||||
|
|
||||||
- name: Build src code
|
- name: Build src code
|
||||||
|
|
|
@ -43,14 +43,21 @@ jobs:
|
||||||
Windows:
|
Windows:
|
||||||
name: Windows
|
name: Windows
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
env:
|
|
||||||
NPM_CACHE: '%LocalAppData%/npm-cache'
|
|
||||||
# needs: CheckCode
|
# needs: CheckCode
|
||||||
steps:
|
steps:
|
||||||
- name: Check out git repository
|
- name: Check out git repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Get npm cache directory
|
||||||
|
shell: pwsh
|
||||||
|
run: echo "NPM_CACHE=$(npm config get cache)" >> $env:GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Show Env
|
||||||
|
run: echo "${{ env.NPM_CACHE }}"
|
||||||
|
|
||||||
- name: Setup Node Env
|
- name: Setup Node Env
|
||||||
|
env:
|
||||||
|
NPM_CACHE: ${{ env.NPM_CACHE }}
|
||||||
uses: ./.github/actions/setup
|
uses: ./.github/actions/setup
|
||||||
|
|
||||||
- name: Build src code
|
- name: Build src code
|
||||||
|
@ -77,14 +84,18 @@ jobs:
|
||||||
Windows_7:
|
Windows_7:
|
||||||
name: Windows_7
|
name: Windows_7
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
env:
|
|
||||||
NPM_CACHE: '%LocalAppData%/npm-cache'
|
|
||||||
# needs: CheckCode
|
# needs: CheckCode
|
||||||
steps:
|
steps:
|
||||||
- name: Check out git repository
|
- name: Check out git repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Get npm cache directory
|
||||||
|
shell: pwsh
|
||||||
|
run: echo "NPM_CACHE=$(npm config get cache)" >> $env:GITHUB_ENV
|
||||||
|
|
||||||
- name: Setup Node Env
|
- name: Setup Node Env
|
||||||
|
env:
|
||||||
|
NPM_CACHE: ${{ env.NPM_CACHE }}
|
||||||
uses: ./.github/actions/setup
|
uses: ./.github/actions/setup
|
||||||
|
|
||||||
- name: Build src code
|
- name: Build src code
|
||||||
|
@ -114,8 +125,6 @@ jobs:
|
||||||
Mac:
|
Mac:
|
||||||
name: Mac
|
name: Mac
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
env:
|
|
||||||
NPM_CACHE: ~/.npm
|
|
||||||
# needs: CheckCode
|
# needs: CheckCode
|
||||||
steps:
|
steps:
|
||||||
- name: Check out git repository
|
- name: Check out git repository
|
||||||
|
@ -128,7 +137,15 @@ jobs:
|
||||||
source ~/.venv/bin/activate
|
source ~/.venv/bin/activate
|
||||||
python3 -m pip install setuptools
|
python3 -m pip install setuptools
|
||||||
|
|
||||||
|
- name: Get npm cache directory
|
||||||
|
shell: bash
|
||||||
|
run: echo "NPM_CACHE=$(npm config get cache)" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Show Env
|
||||||
|
run: echo "${{ env.NPM_CACHE }}"
|
||||||
- name: Setup Node Env
|
- name: Setup Node Env
|
||||||
|
env:
|
||||||
|
NPM_CACHE: ${{ env.NPM_CACHE }}
|
||||||
uses: ./.github/actions/setup
|
uses: ./.github/actions/setup
|
||||||
|
|
||||||
- name: Build src code
|
- name: Build src code
|
||||||
|
@ -152,8 +169,6 @@ jobs:
|
||||||
Linux:
|
Linux:
|
||||||
name: Linux
|
name: Linux
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
NPM_CACHE: ~/.npm
|
|
||||||
# needs: CheckCode
|
# needs: CheckCode
|
||||||
steps:
|
steps:
|
||||||
- name: Install package
|
- name: Install package
|
||||||
|
@ -162,7 +177,15 @@ jobs:
|
||||||
- name: Check out git repository
|
- name: Check out git repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Get npm cache directory
|
||||||
|
shell: bash
|
||||||
|
run: echo "NPM_CACHE=$(npm config get cache)" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Show Env
|
||||||
|
run: echo "${{ env.NPM_CACHE }}"
|
||||||
- name: Setup Node Env
|
- name: Setup Node Env
|
||||||
|
env:
|
||||||
|
NPM_CACHE: ${{ env.NPM_CACHE }}
|
||||||
uses: ./.github/actions/setup
|
uses: ./.github/actions/setup
|
||||||
|
|
||||||
- name: Build src code
|
- name: Build src code
|
||||||
|
|
Loading…
Reference in New Issue