Skip to content

Commit

Permalink
Fix one more package.json path
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Gleitman committed Sep 7, 2023
1 parent 4901952 commit 9aa3d07
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 9aa3d07

Please sign in to comment.