conventional-changelog / conventional-changelog/commitlint-orb
Allow use of private `configs`
- Dominant language
- Shell
- Stars
- 4
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
I would like to be able to use commitlint configs from private packages or repositories.
I believe this is not currently possible for the following reasons:
- Passing `NPM_TOKEN` environment variable through contexts or project configuration is not sufficient, because without [the `-E` switch](https://github.com/conventional-changelog/commitlint-orb/blob/main/src/scripts/lint.sh#L4), `sudo` drops environment variables.
- Even if `-E` switch was used, any `.npmrc` config present in the project would not be read.
- The orb doesn't allow overriding the executor or the docker image, so I cannot use an image which running as root such as `node:18.14`
- AFAICT `npm` doesn't allow passing `_authToken` on the CLI, meaning I cannot piggy-back the `configs` parameter to inject CLI options.
- I can't attach a workspace with `node_modules` where I would have previously installed the private package.
- I can't write a custom job re-using a command from the orb, because there are none.
I will gladly open a PR to address this, but I'd like to know what would be your favorite method of solving this.
Regards,
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.