JulienKode / pull-request-name-linter-action

⚡️ Lint pull request name with commit lint. This is useful if you squash merge your pull requests ⚡️
https://github.com/marketplace/actions/pull-request-linter-action
MIT License
78 stars 13 forks source link

fix: GA install step fails #229

Closed fredericrous closed 1 year ago

fredericrous commented 1 year ago

when I run the action, it fails. here is a quick workaround

fredericrous commented 1 year ago

solution is to do use the npm_config_legacy_peer_deps environment variable:

      - name: Install Dependencies
        env:
          npm_config_strict_peer_dependencies: false
          npm_config_legacy_peer_deps: true
          npm_config_package_lock: false
          npm_config_audit: false
          npm_config_progress: false
        run: npm i @commitlint/config-conventional