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 Dec 22, 2023
1 parent 5513ddf commit 83b58d2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
node-version-file: .nvmrc

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

- name: Lint JavaScript files
run: npm run build
Expand Down
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/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
node-version-file: .nvmrc

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

- name: Lint OpenAPI spec
run: npm run lint
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
needs: release-please
runs-on: ubuntu-latest
if: ${{ needs.release-please.outputs.release_created }}

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -31,7 +32,7 @@ jobs:
registry-url: 'https://registry.npmjs.org'

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

- name: Publish
run: npm publish
Expand Down

0 comments on commit 83b58d2

Please sign in to comment.