Skip to content

build(deps-dev): bump @commitlint/config-conventional #310

build(deps-dev): bump @commitlint/config-conventional

build(deps-dev): bump @commitlint/config-conventional #310

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@v4
- name: Cache dependencies
uses: actions/cache@v3
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: node -p 'require("@commitlint/config-conventional").parserPreset'
# https://github.com/actions/cache/blob/main/examples.md#node---yarn
cache-yarn:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- 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@v3
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: node -p 'require("@commitlint/config-conventional").parserPreset'