Skip to content

Commit c91f5a1

Browse files
committed
chore: Optimize action
1 parent a7b87e2 commit c91f5a1

1 file changed

Lines changed: 13 additions & 14 deletions

File tree

.github/workflows/release_test.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ jobs:
8181
uses: actions/setup-node@main
8282
with:
8383
node-version: "16"
84-
# cache: "yarn"
85-
# cache-dependency-path: chat2db-client/yarn.lock
84+
cache: "yarn"
85+
cache-dependency-path: chat2db-client/yarn.lock
8686

8787
# 安装Java
8888
- name: Install Java and Maven
@@ -93,18 +93,17 @@ jobs:
9393
cache: "maven"
9494

9595
# 从缓存中拿去前端依赖
96-
- name: Cache node modules
97-
id: cache-npm
98-
uses: actions/cache@v3
99-
env:
100-
cache-name: cache-node-modules
101-
with:
102-
path: ~/.npm
103-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
104-
restore-keys: |
105-
${{ runner.os }}-build-${{ env.cache-name }}-
106-
${{ runner.os }}-build-
107-
${{ runner.os }}-
96+
# - name: Cache node modules
97+
# uses: actions/cache@v3
98+
# env:
99+
# cache-name: cache-node-modules
100+
# with:
101+
# path: ./node_modules
102+
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
103+
# restore-keys: |
104+
# ${{ runner.os }}-build-${{ env.cache-name }}-
105+
# ${{ runner.os }}-build-
106+
# ${{ runner.os }}-
108107

109108
# 安装前端依赖
110109
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}

0 commit comments

Comments
 (0)