Skip to content

Commit

Permalink
build: replace npm i with npm ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ph1p committed Sep 2, 2021
1 parent 5e6ea33 commit 6097456
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm ci
- run: npm run build
- run: npm test
2 changes: 1 addition & 1 deletion .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm ci
- run: npm run build
- run: npm test

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/vercel-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm ci
- run: npm run build
- run: npm test

Expand All @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v1
- name: build
run: |
npm i
npm ci
npm run build
- uses: amondnet/vercel-action@v20
Expand Down
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ coverage/
.husky
.github
tsconfig.json
tsconfig.test.json
tsconfig.test.json
.eslintrc.js
.eslintignore
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "eslint --ext .tsx,.ts,.json,.js src/ --fix",
"dev": "npm run build -- -w",
"build": "tsc",
"prepublishOnly": "npm run build",
"prepublishOnly": "npm ci && npm run build",
"prepare": "husky install",
"version": "conventional-changelog -p karma -i CHANGELOG.md -s -r 0 && git add ."
},
Expand Down

0 comments on commit 6097456

Please sign in to comment.