Skip to content

Commit

Permalink
ci(github): replace npm install with npm ci in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Oct 28, 2023
1 parent 76f5afc commit 589c745
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,20 @@ jobs:
node-version-file: .nvmrc

- name: Install dependencies
run: npm install --prefer-offline
run: npm ci --prefer-offline

- name: Lint JavaScript files
- name: Run ESLint
run: npm run lint

- name: Lint TypeScript declaration files
- name: Type check
run: npm run lint:dts

- name: Run tests
- name: Run unit tests
run: npm run test:ci

- name: Codecov
uses: codecov/codecov-action@v3

- name: Run module tests
run: npm run test:esm

Expand All @@ -35,6 +38,3 @@ jobs:

- name: Run benchmark
run: npm run benchmark

- name: Codecov
uses: codecov/codecov-action@v3
2 changes: 1 addition & 1 deletion .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
node-version-file: .nvmrc

- name: Install dependencies
run: npm install --prefer-offline
run: npm ci --prefer-offline

- name: Lint commit message
run: npx commitlint --from=HEAD~1
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
registry-url: https://registry.npmjs.org

- name: Install dependencies
run: npm install
run: npm ci

- name: Publish
run: npm publish
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
- name: Size Limit
uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ github.token }}

0 comments on commit 589c745

Please sign in to comment.