Skip to content

build(deps-dev): bump @commitlint/cli from 20.0.0 to 20.1.0 #449

build(deps-dev): bump @commitlint/cli from 20.0.0 to 20.1.0

build(deps-dev): bump @commitlint/cli from 20.0.0 to 20.1.0 #449

Workflow file for this run

# https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows#using-the-cache-action
name: Cache
on: push
jobs:
# https://github.com/actions/cache/blob/main/examples.md#node---npm
cache-npm:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Cache dependencies
uses: actions/cache@v4
id: cache
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json', './package-lock.json') }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci --prefer-offline
- name: Test dependency
run: npm list @commitlint/cli
# https://github.com/actions/cache/blob/main/examples.md#node---yarn
cache-yarn:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn --frozen-lockfile --prefer-offline
- name: Test dependency
run: npm list @commitlint/cli