Skip to content

Commit 80ebbd2

Browse files
Copilotdata-douser
andcommitted
Fix npm optional dependencies bug in GitHub Actions workflows
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
1 parent 2923401 commit 80ebbd2

File tree

4 files changed

+1335
-43
lines changed

4 files changed

+1335
-43
lines changed

.github/workflows/build-server.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
node-version-file: '.node-version'
3939

4040
- name: Build Server - Install dependencies
41-
run: npm ci
41+
run: npm ci --include=optional
4242
working-directory: .
4343

4444
- name: Build Server - Clean previous build

.github/workflows/copilot-setup-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
node-version-file: '.node-version'
5252

5353
- name: Copilot Setup - Install dependencies
54-
run: npm ci
54+
run: npm ci --include=optional
5555

5656
- name: Copilot Setup - Setup CodeQL environment
5757
uses: ./.github/actions/setup-codeql-environment

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
fi
8787
8888
- name: Release - Install dependencies
89-
run: npm ci
89+
run: npm ci --include=optional
9090

9191
- name: Release - Build server
9292
run: npm run build -w server
@@ -152,7 +152,7 @@ jobs:
152152
153153
- name: Release - Install production dependencies
154154
working-directory: dist-package/server
155-
run: npm ci --omit=dev
155+
run: npm ci --omit=dev --include=optional
156156

157157
- name: Release - Create archive
158158
run: |

0 commit comments

Comments
 (0)