Skip to content

Commit 8a114cd

Browse files
committed
add optional dependencies for build
1 parent 4ddbc51 commit 8a114cd

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/development.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
node-version: '22'
3636

3737
- name: Install dependencies
38-
run: npm i
38+
run: npm ci
3939

4040
- name: Run quality and typing checks
4141
run: npm run lint
@@ -70,7 +70,7 @@ jobs:
7070
node-version: '22'
7171

7272
- name: Install dependencies
73-
run: npm i
73+
run: npm ci
7474

7575
- name: Run quality and typing checks
7676
run: npm run type-check
@@ -105,7 +105,7 @@ jobs:
105105
node-version: '22'
106106

107107
- name: Install dependencies
108-
run: npm i
108+
run: npm ci
109109

110110
- name: Run pre-commit checks
111111
run: npx husky run pre-commit
@@ -140,7 +140,7 @@ jobs:
140140
node-version: '22'
141141

142142
- name: Install dependencies
143-
run: npm i
143+
run: npm ci
144144

145145
- name: Run unit tests
146146
run: npm run test:unit
@@ -175,7 +175,7 @@ jobs:
175175
node-version: '22'
176176

177177
- name: Install dependencies
178-
run: npm i
178+
run: npm ci
179179

180180
- name: Run integration tests
181181
run: npm run test:integration
@@ -261,7 +261,7 @@ jobs:
261261
262262
- name: Install dependencies
263263
if: steps.check-changes.outputs.should_build == 'true'
264-
run: npm i
264+
run: npm ci
265265

266266
- name: Build app to root
267267
if: steps.check-changes.outputs.should_build == 'true'

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@
7474
"typescript": "^5",
7575
"typescript-eslint": "^8.34.0"
7676
},
77+
"optionalDependencies": {
78+
"@next/swc-linux-x64-gnu": "^15.3.3",
79+
"@next/swc-linux-x64-musl": "^15.3.3"
80+
},
7781
"lint-staged": {
7882
"*.js": "eslint --cache --fix",
7983
"*.ts": "eslint --cache --fix",

0 commit comments

Comments
 (0)