Skip to content

Commit 95d8300

Browse files
committed
fix: Ensure production dependencies are installed during build steps
1 parent 1d0d033 commit 95d8300

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
- name: Install dependencies
2020
run: npm install --prefix CommitRangeReleaseNotesTask
2121

22+
- name: Build project
23+
run: npm run build-ci --prefix CommitRangeReleaseNotesTask
24+
2225
- name: Install tfx-cli
2326
run: npm install -g tfx-cli
2427

CommitRangeReleaseNotesTask/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "Azure DevOps extension to generate release notes from a commit range",
55
"main": "index.js",
66
"scripts": {
7-
"build": "tsc && cd task && npm install",
8-
"build-ci": "tsc && cd task && npm ci",
7+
"build": "tsc && cd task && npm install --production",
8+
"build-ci": "tsc && cd task && npm ci --production",
99
"test": "echo \"Error: no test specified\" && exit 1"
1010
},
1111
"author": "Ieuan Walker",

0 commit comments

Comments
 (0)