Skip to content

Commit

Permalink
remove npm caching in validate pr title
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger committed Sep 3, 2023
1 parent b84bda6 commit 10e8451
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/validate-pr-title.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,17 @@ jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: ${{ env.node_version }}
cache: npm

- name: Validate PR title
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
npm install -D @commitlint/[email protected] @commitlint/[email protected]
# Configure commitlint to use conventional config.
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
# Install conventional config and run commitlint.
echo $PR_TITLE | npx -p @commitlint/[email protected] -p @commitlint/[email protected] -y commitlint --verbose
echo $PR_TITLE | npx commitlint --verbose

0 comments on commit 10e8451

Please sign in to comment.