* Creates a commit for the specified files with the given message. * @param message Message for the created commit * @param files List of project-relative file paths to be committed.
(message: string, files: string[])
| 431 | * @param files List of project-relative file paths to be committed. |
| 432 | */ |
| 433 | protected async createCommit(message: string, files: string[]) { |
| 434 | // Note: `git add` would not be needed if the files are already known to |
| 435 | // Git, but the specified files could also be newly created, and unknown. |
| 436 | this.git.run(['add', ...files]); |
| 437 | // Note: `--no-verify` skips the majority of commit hooks here, but there are hooks |
| 438 | // like `prepare-commit-message` which still run. We have set the `HUSKY=0` environment |
| 439 | // variable at the start of the publish command to ignore such hooks as well. |
| 440 | this.git.run(['commit', '-q', '--no-verify', '-m', message, ...files]); |
| 441 | } |
| 442 | |
| 443 | /** |
| 444 | * Builds the release output for the current branch. Assumes the node modules |