Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 25d2590

Browse files
committedJun 20, 2024·
Use npm ci and build app on PRs
1 parent 2edf2a2 commit 25d2590

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed
 

‎.github/workflows/github-pages.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
CI: false
2929
run: |
3030
ls
31-
npm install
31+
npm ci
3232
npm run build
3333
3434
- name: Build storybook

‎.github/workflows/sample-app-web.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ jobs:
3737

3838
# Site Testing steps
3939
- name: Install dependencies
40-
run: npm install
40+
run: npm ci
41+
42+
- name: Build
43+
run: npm run build
4144

4245
- name: Run Unit Tests and generate coverage report
4346
run: npm run test.coverage

‎Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ ENV PATH="$HOME/sc-4.8.2-linux/bin:$PATH"
88
# web app
99
WORKDIR /sample-app-web
1010
COPY . .
11-
RUN npm install
11+
RUN npm ci

0 commit comments

Comments
 (0)
Please sign in to comment.