Skip to content

Commit a0a00fa

Browse files
author
alpsla
committed
Simplify CI workflow to use npm install without lockfile expectations
1 parent 59dbb14 commit a0a00fa

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ jobs:
1616
uses: actions/setup-node@v3
1717
with:
1818
node-version: '18.x'
19-
# Don't use yarn cache since we might not have a yarn.lock
20-
cache: 'npm'
2119
- name: Install dependencies
22-
run: npm ci || npm install
20+
run: npm install
2321
- name: Run ESLint
2422
run: npm run lint
2523

@@ -32,9 +30,8 @@ jobs:
3230
uses: actions/setup-node@v3
3331
with:
3432
node-version: '18.x'
35-
cache: 'npm'
3633
- name: Install dependencies
37-
run: npm ci || npm install
34+
run: npm install
3835
- name: Type check
3936
run: npx tsc --noEmit
4037

@@ -47,9 +44,8 @@ jobs:
4744
uses: actions/setup-node@v3
4845
with:
4946
node-version: '18.x'
50-
cache: 'npm'
5147
- name: Install dependencies
52-
run: npm ci || npm install
48+
run: npm install
5349
- name: Run tests
5450
run: npm test
5551
- name: Upload coverage
@@ -66,9 +62,8 @@ jobs:
6662
uses: actions/setup-node@v3
6763
with:
6864
node-version: '18.x'
69-
cache: 'npm'
7065
- name: Install dependencies
71-
run: npm ci || npm install
66+
run: npm install
7267
- name: Build
7368
run: npm run build
7469

@@ -81,9 +76,8 @@ jobs:
8176
uses: actions/setup-node@v3
8277
with:
8378
node-version: '18.x'
84-
cache: 'npm'
8579
- name: Install dependencies
86-
run: npm ci || npm install
80+
run: npm install
8781

8882
# Load secrets from GitHub Actions secrets to environment variables
8983
- name: Set up environment variables

0 commit comments

Comments
 (0)