Skip to content

Commit 90838b3

Browse files
committed
use npm ci instead of npm install
1 parent 4a2a5c4 commit 90838b3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/cicd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
run: npm list
3535

3636
- name: Install dependencies
37-
run: npm install --prefer-offline
37+
run: npm ci --ignore-scripts --prefer-offline
3838

3939
# - name: Typecheck
4040
# run: npm run typecheck

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ FROM base as deps
1313
WORKDIR /myapp
1414

1515
ADD package.json package-lock.json .npmrc ./
16-
RUN npm install --include=dev
16+
RUN npm ci --ignore-scripts --include=dev
1717

1818
# Setup production node_modules
1919
FROM base as production-deps

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ COOKIE_SECRET="s3cr3ts3cr3t"
2222
### Start app in development mode
2323

2424
```sh
25-
npm install # Install dependencies
26-
npm run setup:db # Setup Prisma and migrate database
27-
npm run dev # Start app in dev mode with hot reload
25+
npm ci --ignore-scripts # Install dependencies
26+
npm run setup:db # Setup Prisma and migrate database
27+
npm run dev # Start app in dev mode with hot reload
2828
```
2929

3030
### (Optional) Use prod data in local dev

0 commit comments

Comments
 (0)