File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
packages/react-native-ui-lib/scripts/release Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,9 @@ function versionTagAndPublish() {
6666}
6767
6868function findCurrentPublishedVersion ( ) {
69- return exec . execSyncRead ( `npm view ${ process . env . npm_package_name } dist-tags.latest` ) ;
69+ const result = exec . execSyncRead ( `yarn npm info ${ process . env . npm_package_name } --fields dist-tags --json` ) ;
70+ const parsed = JSON . parse ( result ) ;
71+ return parsed [ 'dist-tags' ] . latest ;
7072}
7173
7274function tryPublishAndTag ( version ) {
@@ -89,8 +91,8 @@ function tryPublishAndTag(version) {
8991
9092function tagAndPublish ( newVersion ) {
9193 console . log ( `trying to publish ${ newVersion } ...` ) ;
92- exec . execSync ( `npm --no-git-tag-version version ${ newVersion } ` ) ;
93- exec . execSync ( `npm publish --tag ${ VERSION_TAG } ` ) ;
94+ exec . execSync ( `yarn version ${ newVersion } ` ) ;
95+ exec . execSync ( `yarn npm publish --tag ${ VERSION_TAG } ` ) ;
9496 if ( isRelease ) {
9597 exec . execSync ( `git tag -a ${ newVersion } -m "${ newVersion } "` ) ;
9698 }
You can’t perform that action at this time.
0 commit comments