diff --git a/.github/configs/commitlint.config.js b/.github/configs/commitlint.config.js new file mode 100644 index 0000000..84dcb12 --- /dev/null +++ b/.github/configs/commitlint.config.js @@ -0,0 +1,3 @@ +module.exports = { + extends: ['@commitlint/config-conventional'], +}; diff --git a/.github/configs/commitlint.config.mjs b/.github/configs/commitlint.config.mjs new file mode 100644 index 0000000..0616fb9 --- /dev/null +++ b/.github/configs/commitlint.config.mjs @@ -0,0 +1,3 @@ +export default { + extends: ['@commitlint/config-conventional'], +}; diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index 7b27e94..86ec4c7 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -12,3 +12,5 @@ jobs: steps: - uses: actions/checkout@v3 - uses: wagoid/commitlint-github-action@v6 + with: + configFile: .github/configs/commitlint.config.mjs diff --git a/.github/workflows/pr_name.yml b/.github/workflows/pr_name.yml index fd2e632..c102e4f 100644 --- a/.github/workflows/pr_name.yml +++ b/.github/workflows/pr_name.yml @@ -8,7 +8,9 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Install Dependencies - run: npm install @commitlint/config-conventional - - uses: JulienKode/pull-request-name-linter-action@v0.5.0 + - uses: actions/checkout@v3 + - name: Install Dependencies + run: npm install @commitlint/config-conventional@16.0.0 + - uses: JulienKode/pull-request-name-linter-action@v0.5.0 + with: + configuration-path: .github/configs/commitlint.config.js