Skip to content

Commit 6097456

Browse files
committed
build: replace npm i with npm ci
1 parent 5e6ea33 commit 6097456

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

.github/workflows/test-and-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ jobs:
1616
uses: actions/setup-node@v1
1717
with:
1818
node-version: ${{ matrix.node-version }}
19-
- run: npm i
19+
- run: npm ci
2020
- run: npm run build
2121
- run: npm test

.github/workflows/test-and-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/setup-node@v1
2020
with:
2121
node-version: ${{ matrix.node-version }}
22-
- run: npm i
22+
- run: npm ci
2323
- run: npm run build
2424
- run: npm test
2525

.github/workflows/vercel-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/setup-node@v1
2020
with:
2121
node-version: ${{ matrix.node-version }}
22-
- run: npm i
22+
- run: npm ci
2323
- run: npm run build
2424
- run: npm test
2525

@@ -30,7 +30,7 @@ jobs:
3030
- uses: actions/checkout@v1
3131
- name: build
3232
run: |
33-
npm i
33+
npm ci
3434
npm run build
3535
3636
- uses: amondnet/vercel-action@v20

.npmignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ coverage/
44
.husky
55
.github
66
tsconfig.json
7-
tsconfig.test.json
7+
tsconfig.test.json
8+
.eslintrc.js
9+
.eslintignore

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lint": "eslint --ext .tsx,.ts,.json,.js src/ --fix",
1010
"dev": "npm run build -- -w",
1111
"build": "tsc",
12-
"prepublishOnly": "npm run build",
12+
"prepublishOnly": "npm ci && npm run build",
1313
"prepare": "husky install",
1414
"version": "conventional-changelog -p karma -i CHANGELOG.md -s -r 0 && git add ."
1515
},

0 commit comments

Comments
 (0)