Skip to content

Commit 207f8ce

Browse files
authored
fix: commitlint error (#77)
Changed how deps are defined, and following error started to occur ``` ResolveMessage: Cannot find package 'conventional-changelog-conventionalcommits' from '/github/home/.bun/install/cache/@commitlint/config-conventional@21.2.0@@@1/lib/noop.js' at <anonymous> (/tmp/bunx-0-commitlint@latest/node_modules/@commitlint/cli/lib/cli.js:142:15) ``` PR explicitly installs the commitlint configs
1 parent 0df926e commit 207f8ce

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/reusable_pr_checks.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ jobs:
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
22+
- name: Clean
23+
run: |
24+
find . -mindepth 1 -maxdepth 1 -not -name '*commitlintrc*' -exec rm -rf {} \;
2225
- name: Validate PR commits with commitlint
2326
env:
2427
PR_TITLE: ${{ github.event.pull_request.title }}
2528
run: |
29+
bun install --dev @commitlint/config-conventional
2630
echo "${PR_TITLE}" | bunx commitlint --verbose

0 commit comments

Comments
 (0)