Skip to content

Commit

Permalink
Merge pull request #889 from salesforcecli/ew/cli-pr-oclif-readme
Browse files Browse the repository at this point in the history
Generate readme during cli PR build
  • Loading branch information
iowillhoit authored Sep 29, 2023
2 parents b528ebf + efe3325 commit 1bd22ed
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"husky": "^7.0.4",
"mocha": "^9.1.3",
"nyc": "^15.1.0",
"oclif": "^3.17.1",
"oclif": "^3.17.2",
"prettier": "^2.8.8",
"pretty-quick": "^3.1.0",
"shx": "0.3.4",
Expand Down
4 changes: 4 additions & 0 deletions src/commands/cli/release/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ export default class build extends SfCommand<void> {
await this.exec('npx yarn-deduplicate');
// Run an install with deduplicated dependencies (with scripts)
await this.exec('yarn install');
// Generate a new readme with the latest dependencies
await this.exec(
'yarn oclif readme --no-aliases --repository-prefix "<%- repo %>/blob/<%- version %>/<%- commandPath %>"'
);

this.log('Updates complete');

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6969,10 +6969,10 @@ object.values@^1.1.6:
define-properties "^1.1.4"
es-abstract "^1.20.4"

oclif@^3.17.1:
version "3.17.1"
resolved "https://registry.yarnpkg.com/oclif/-/oclif-3.17.1.tgz#be210c063d4e78995b8dab594c3a220c4cf17710"
integrity sha512-qwop0W9s5nJJ9tTdLsYXxxvGSNc9xKjXccEAGCXM+x8NmGtZ4P89FwqDY4PIG7IeV9VNpYhZKQArpZNwPGn0CQ==
oclif@^3.17.2:
version "3.17.2"
resolved "https://registry.yarnpkg.com/oclif/-/oclif-3.17.2.tgz#f13756c9b1968047e76b99cb09db9725e96fb2f6"
integrity sha512-+vFXxgmR7dGGz+g6YiqSZu2LXVkBMaS9/rhtsLGkYw45e53CW/3kBgPRnOvxcTDM3Td9JPeBD2JWxXnPKGQW3A==
dependencies:
"@oclif/core" "^2.11.4"
"@oclif/plugin-help" "^5.2.14"
Expand Down

0 comments on commit 1bd22ed

Please sign in to comment.