Skip to content

Commit 589c745

Browse files
ci(github): replace npm install with npm ci in workflows
1 parent 76f5afc commit 589c745

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,20 @@ jobs:
1616
node-version-file: .nvmrc
1717

1818
- name: Install dependencies
19-
run: npm install --prefer-offline
19+
run: npm ci --prefer-offline
2020

21-
- name: Lint JavaScript files
21+
- name: Run ESLint
2222
run: npm run lint
2323

24-
- name: Lint TypeScript declaration files
24+
- name: Type check
2525
run: npm run lint:dts
2626

27-
- name: Run tests
27+
- name: Run unit tests
2828
run: npm run test:ci
2929

30+
- name: Codecov
31+
uses: codecov/codecov-action@v3
32+
3033
- name: Run module tests
3134
run: npm run test:esm
3235

@@ -35,6 +38,3 @@ jobs:
3538

3639
- name: Run benchmark
3740
run: npm run benchmark
38-
39-
- name: Codecov
40-
uses: codecov/codecov-action@v3

.github/workflows/commitlint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
node-version-file: .nvmrc
1919

2020
- name: Install dependencies
21-
run: npm install --prefer-offline
21+
run: npm ci --prefer-offline
2222

2323
- name: Lint commit message
2424
run: npx commitlint --from=HEAD~1

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
registry-url: https://registry.npmjs.org
3333

3434
- name: Install dependencies
35-
run: npm install
35+
run: npm ci
3636

3737
- name: Publish
3838
run: npm publish

.github/workflows/size-limit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
- name: Size Limit
1717
uses: andresz1/size-limit-action@v1
1818
with:
19-
github_token: ${{ secrets.GITHUB_TOKEN }}
19+
github_token: ${{ github.token }}

0 commit comments

Comments
 (0)