Skip to content

Commit c8a12c6

Browse files
authored
Merge pull request #21110 from souhailaS/optimized-ci
[CI] Optimized ci
2 parents 60b7a61 + 6e8e514 commit c8a12c6

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,9 @@ jobs:
3737
- name: Cache node modules
3838
id: cache-dep
3939
uses: actions/cache@v4
40-
env:
41-
cache-name: cache-node-modules
4240
with:
4341
path: node_modules
44-
key: ${{ runner.os }}-lint-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
42+
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
4543

4644
- name: Install dependencies
4745
if: steps.cache-dep.outputs.cache-hit != 'true'
@@ -77,11 +75,9 @@ jobs:
7775
- name: Cache node modules
7876
id: cache-dep
7977
uses: actions/cache@v4
80-
env:
81-
cache-name: cache-node-modules
8278
with:
8379
path: node_modules
84-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
80+
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
8581

8682
- name: Install dependencies
8783
if: steps.cache-dep.outputs.cache-hit != 'true'
@@ -102,7 +98,7 @@ jobs:
10298
run: |
10399
export PR_PREVIEW_DIR='echarts-pr-preview'
104100
mkdir -p $PR_PREVIEW_DIR
105-
npm pack -pack-destination $PR_PREVIEW_DIR
101+
npm pack --pack-destination $PR_PREVIEW_DIR
106102
echo "PR_PREVIEW_DIR=$PR_PREVIEW_DIR" >> $GITHUB_ENV
107103
108104
- name: Save PR metadata and dist files

0 commit comments

Comments
 (0)