Skip to content

Commit 4f9607f

Browse files
committed
chore: fix release-it patch
1 parent 013ff42 commit 4f9607f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

patches/release-it.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ index 1400c8e9476854ba7843dee7ac751dd2f0aea4cb..edf190e473ceb1ef0fd026aec16b40a0
77
}
88
const args = [publishPath, `--tag ${tag}`, otpArg, dryRunArg, ...fixArgs(publishArgs)].filter(Boolean);
99
- return this.exec(`npm publish ${args.join(' ')}`, { options })
10-
+ return (this.config.isDryRun ? this.exec(`npm publish ${args.join(' ')}`, { options }) : this.exec(`yarn npm publish ${args.join(' ')}`, { options }))
10+
+ return (this.config.isDryRun ? this.exec(`npm publish ${args.join(' ')}`, { options }) : this.exec(`yarn npm publish ${args.splice(1).join(' ')}`, { options }))
1111
.then(() => {
1212
this.setContext({ isReleased: true });
1313
})

yarn.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -15481,7 +15481,7 @@ [email protected]:
1548115481

1548215482
"release-it@patch:[email protected]#patches/release-it.patch::locator=react-native-li-project%40workspace%3A.":
1548315483
version: 14.6.0
15484-
resolution: "release-it@patch:release-it@npm%3A14.6.0#patches/release-it.patch::version=14.6.0&hash=6ea2c8&locator=react-native-li-project%40workspace%3A."
15484+
resolution: "release-it@patch:release-it@npm%3A14.6.0#patches/release-it.patch::version=14.6.0&hash=181d50&locator=react-native-li-project%40workspace%3A."
1548515485
dependencies:
1548615486
"@iarna/toml": 2.2.5
1548715487
"@octokit/rest": 18.5.2
@@ -15513,7 +15513,7 @@ [email protected]:
1551315513
yargs-parser: 20.2.7
1551415514
bin:
1551515515
release-it: bin/release-it.js
15516-
checksum: 24068ef0f9c7f73c8c483cdde43910c0f217f2ef51903aea35f71ea596a997df756a3c7f117afed90b76b086bdbeb270e2f662e91024256caa1bf31cb06e3d30
15516+
checksum: 1081b5ce95a0c09d6b8b60e76a6ecd1e841b8bc8d8d366e82c432ed31ba8309c8da9a767e8736bfbd29dec8b9c774aabca4aea91d6b3596ac4a274f42d5cb654
1551715517
languageName: node
1551815518
linkType: hard
1551915519

0 commit comments

Comments
 (0)