Skip to content

Commit

Permalink
Merge pull request #1932 from amgleitman/0.72-one-more-package-json-path
Browse files Browse the repository at this point in the history
Fix one more package.json path
  • Loading branch information
amgleitman authored Sep 8, 2023
2 parents 4901952 + 9aa3d07 commit 0c1f1f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/publish-npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const shortCommit = currentCommit.slice(0, 9);

// [macOS] Function to get our version from package.json instead of the CircleCI build tag.
function getPkgJsonVersion() {
const pkgJsonPath = path.resolve(__dirname, '../package.json');
const pkgJsonPath = path.resolve(RN_PACKAGE_DIR, 'package.json');
const pkgJson = JSON.parse(fs.readFileSync(pkgJsonPath, 'utf8'));
const pkgJsonVersion = pkgJson.version;
return pkgJsonVersion;
Expand Down

0 comments on commit 0c1f1f7

Please sign in to comment.