Skip to content

Commit

Permalink
chore: fix release-it patch
Browse files Browse the repository at this point in the history
  • Loading branch information
jsamr committed Apr 13, 2021
1 parent 013ff42 commit 4f9607f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion patches/release-it.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 1400c8e9476854ba7843dee7ac751dd2f0aea4cb..edf190e473ceb1ef0fd026aec16b40a0
}
const args = [publishPath, `--tag ${tag}`, otpArg, dryRunArg, ...fixArgs(publishArgs)].filter(Boolean);
- return this.exec(`npm publish ${args.join(' ')}`, { options })
+ return (this.config.isDryRun ? this.exec(`npm publish ${args.join(' ')}`, { options }) : this.exec(`yarn npm publish ${args.join(' ')}`, { options }))
+ return (this.config.isDryRun ? this.exec(`npm publish ${args.join(' ')}`, { options }) : this.exec(`yarn npm publish ${args.splice(1).join(' ')}`, { options }))
.then(() => {
this.setContext({ isReleased: true });
})
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15481,7 +15481,7 @@ [email protected]:

"release-it@patch:[email protected]#patches/release-it.patch::locator=react-native-li-project%40workspace%3A.":
version: 14.6.0
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."
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."
dependencies:
"@iarna/toml": 2.2.5
"@octokit/rest": 18.5.2
Expand Down Expand Up @@ -15513,7 +15513,7 @@ [email protected]:
yargs-parser: 20.2.7
bin:
release-it: bin/release-it.js
checksum: 24068ef0f9c7f73c8c483cdde43910c0f217f2ef51903aea35f71ea596a997df756a3c7f117afed90b76b086bdbeb270e2f662e91024256caa1bf31cb06e3d30
checksum: 1081b5ce95a0c09d6b8b60e76a6ecd1e841b8bc8d8d366e82c432ed31ba8309c8da9a767e8736bfbd29dec8b9c774aabca4aea91d6b3596ac4a274f42d5cb654
languageName: node
linkType: hard

Expand Down

0 comments on commit 4f9607f

Please sign in to comment.