Skip to content

Commit

Permalink
docs(release): add script to bump openapi spec dep version
Browse files Browse the repository at this point in the history
    Primary Changes
    ---------------
    1. Fixed tools/bump-openapi-spec-dep-versions.ts
    2. Update the docs to incorporate the same

    Secondary Changes
    -----------------
    3. To incorporate 1), upgraded the prettier version

Fixes hyperledger-cacti#479

Signed-off-by: jagpreetsinghsasan <[email protected]>
  • Loading branch information
jagpreetsinghsasan committed Sep 14, 2023
1 parent 191de42 commit bae6a06
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions RELEASE_MANAGEMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ git push --force-with-lease
git checkout -b release-v1.1.3
yarn run configure
yarn lerna version 1.1.3 --ignore-scripts --conventional-commits --exact --git-remote upstream --message="chore(release): publish %s" --no-push --no-git-tag-version --no-ignore-changes --force-publish
yarn tools:bump-openapi-spec-dep-versions
./tools/weaver-update-version.sh 1.1.3 .
./tools/go-gen-checksum.sh 1.1.3 .
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
"npm-run-all": "4.1.5",
"npm-watch": "0.11.0",
"openapi-types": "12.1.3",
"prettier": "2.8.8",
"prettier": "3.0.3",
"protoc-gen-ts": "0.8.6",
"run-time-error": "1.4.0",
"secp256k1": "4.0.3",
Expand Down
2 changes: 1 addition & 1 deletion tools/bump-openapi-spec-dep-versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ async function bumpOpenApiSpecDepVersionsOneFile(
throw new RuntimeError(`Could not locate .prettierrc.js in project dir`);
}
const prettierOpts = { ...prettierCfg, parser: "json" };
const prettyJson = prettier.format(specAsJsonString, prettierOpts);
const prettyJson = await prettier.format(specAsJsonString, prettierOpts);

if (replacements.length > 0) {
console.log(`${TAG} writing changes to disk or ${filePathRel}`);
Expand Down
11 changes: 10 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7830,7 +7830,7 @@ __metadata:
npm-run-all: 4.1.5
npm-watch: 0.11.0
openapi-types: 12.1.3
prettier: 2.8.8
prettier: 3.0.3
protoc-gen-ts: 0.8.6
run-time-error: 1.4.0
secp256k1: 4.0.3
Expand Down Expand Up @@ -36793,6 +36793,15 @@ __metadata:
languageName: node
linkType: hard

"prettier@npm:3.0.3":
version: 3.0.3
resolution: "prettier@npm:3.0.3"
bin:
prettier: bin/prettier.cjs
checksum: e10b9af02b281f6c617362ebd2571b1d7fc9fb8a3bd17e371754428cda992e5e8d8b7a046e8f7d3e2da1dcd21aa001e2e3c797402ebb6111b5cd19609dd228e0
languageName: node
linkType: hard

"pretty-bytes@npm:^5.3.0":
version: 5.6.0
resolution: "pretty-bytes@npm:5.6.0"
Expand Down

0 comments on commit bae6a06

Please sign in to comment.