Skip to content

Commit 61ceb5f

Browse files
committed
fix: Update dependency installation method and cache key for improved performance
1 parent 2cd4228 commit 61ceb5f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/testAndDeploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
- name: Generate cache key
4141
id: cache-key
42-
run: echo "key=node-modules-${{ hashFiles('**/package-lock.json') }}" >> $GITHUB_OUTPUT
42+
run: echo "key=node-modules-${{ hashFiles('**/package.json') }}" >> $GITHUB_OUTPUT
4343

4444
- name: Cache node modules
4545
uses: actions/cache@v3
@@ -51,7 +51,7 @@ jobs:
5151
5252
- name: Install dependencies
5353
run: |
54-
npm ci
54+
npm install
5555
npx react-native doctor || true
5656
5757
# Lint and Type Check
@@ -75,7 +75,7 @@ jobs:
7575
key: ${{ needs.setup.outputs.cache-key }}
7676

7777
- name: Install dependencies
78-
run: npm ci
78+
run: npm install
7979

8080
- name: Run ESLint
8181
run: npm run lint
@@ -107,7 +107,7 @@ jobs:
107107
key: ${{ needs.setup.outputs.cache-key }}
108108

109109
- name: Install dependencies
110-
run: npm ci
110+
run: npm install
111111

112112
- name: Run unit tests
113113
run: npm test -- --coverage --watchAll=false
@@ -169,7 +169,7 @@ jobs:
169169
key: ${{ needs.setup.outputs.cache-key }}
170170

171171
- name: Install dependencies
172-
run: npm ci
172+
run: npm install
173173

174174
- name: Cache Gradle
175175
uses: actions/cache@v3
@@ -240,7 +240,7 @@ jobs:
240240
key: ${{ needs.setup.outputs.cache-key }}
241241

242242
- name: Install dependencies
243-
run: npm ci
243+
run: npm install
244244

245245
- name: Cache CocoaPods
246246
uses: actions/cache@v3

0 commit comments

Comments
 (0)