From 83b58d2bda9458ba31d92e8f5f7811519477fabc Mon Sep 17 00:00:00 2001 From: Mark Date: Fri, 22 Dec 2023 03:53:48 -0500 Subject: [PATCH] ci(github): replace `npm install` with `npm ci` in workflows --- .github/workflows/build.yml | 2 +- .github/workflows/commitlint.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/release-please.yml | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 91cf7dd..922636c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index bdcf31a..c80b3ce 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index bbfe5b2..0ab417a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 2088e33..de44fbb 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -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 @@ -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