Skip to content

Commit 31557f8

Browse files
authored
[CI] Pick CI fixes from main (#2004)
1 parent 184bc75 commit 31557f8

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

packages/community-cli-plugin/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,8 @@
3939
},
4040
"engines": {
4141
"node": ">=18"
42+
},
43+
"beachball": {
44+
"shouldPublish": false
4245
}
4346
}

packages/virtualized-lists/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@react-native-mac/virtualized-lists",
33
"version": "0.73.3",
4-
"description": "Virtualized lists for React Native.",
4+
"description": "Virtualized lists for React Native macOS.",
55
"license": "MIT",
66
"repository": {
77
"type": "git",

scripts/npm-utils.js

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,23 @@ const {
1616
getCurrentCommit,
1717
isTaggedLatest,
1818
} = require('./scm-utils');
19+
const path = require('path'); // [macOS]
20+
const fs = require('fs'); // [macOS]
21+
22+
// [macOS] Function to get our version from package.json instead of the CircleCI build tag.
23+
function getPkgJsonVersion() {
24+
const RN_PACKAGE_DIRECTORY = path.resolve(
25+
__dirname,
26+
'..',
27+
'packages',
28+
'react-native',
29+
);
30+
const pkgJsonPath = path.resolve(RN_PACKAGE_DIRECTORY, 'package.json');
31+
const pkgJson = JSON.parse(fs.readFileSync(pkgJsonPath, 'utf8'));
32+
const pkgJsonVersion = pkgJson.version;
33+
return pkgJsonVersion;
34+
}
35+
// macOS]
1936

2037
// Get `next` version from npm and +1 on the minor for `main` version
2138
function getMainVersion() {
@@ -48,7 +65,7 @@ function getNpmInfo(buildType) {
4865
}
4966

5067
const {version, major, minor, prerelease} = parseVersion(
51-
process.env.CIRCLE_TAG,
68+
getPkgJsonVersion(), // [macOS] We can't use the CircleCI build tag, so we use the version argument instead.
5269
buildType,
5370
);
5471

0 commit comments

Comments
 (0)