From 5a2c4aea012c1b27301f521021f3f24012d19123 Mon Sep 17 00:00:00 2001 From: Andrew Coates <30809111+acoates-ms@users.noreply.github.com> Date: Mon, 11 Mar 2024 17:24:53 -0700 Subject: [PATCH] Add RNW 0.73.3 --- .github/workflows/update-releases.yml | 12 ++++++------ RELEASES | 1 + generate-all-mac.js | 10 ++++++++++ generate-all.js | 9 +++++++++ 4 files changed, 26 insertions(+), 6 deletions(-) diff --git a/.github/workflows/update-releases.yml b/.github/workflows/update-releases.yml index 083cdb44338..f0cb00acf01 100644 --- a/.github/workflows/update-releases.yml +++ b/.github/workflows/update-releases.yml @@ -14,10 +14,10 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 0 # fetch all branches etc - submodules: true + submodules: false - uses: actions/setup-node@v1 with: - node-version: '12' + node-version: '18' # Clean up some unneeded disk hogs # - run: | # $path = "$Env:Programfiles" @@ -42,7 +42,7 @@ jobs: - run: git config --global user.email "30809111+acoates-ms@users.noreply.github.com" - run: git config --global user.name "Andrew Coates" - run: npm install semver - - run: node generate-all.js + - run: node generate-all.js onlyOne - run: git add RELEASES - run: git commit -m "Update RELEASES" - run: git push @@ -53,10 +53,10 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 0 # fetch all branches etc - submodules: true + submodules: false - uses: actions/setup-node@v1 with: - node-version: '12' + node-version: '18' # Clean up some unneeded disk hogs - run: Remove-Item "$Env:Programfiles\Azure Cosmos DB Emulator" -Recurse -Force -ErrorAction SilentlyContinue -ErrorVariable err - run: Write-Host $err @@ -65,7 +65,7 @@ jobs: - run: git config --global user.email "30809111+acoates-ms@users.noreply.github.com" - run: git config --global user.name "Andrew Coates" - run: npm install semver - - run: node generate-all-mac.js + - run: node generate-all-mac.js onlyOne - run: git add RELEASES_MAC - run: git commit -m "Update RELEASES_MAC" - run: git push diff --git a/RELEASES b/RELEASES index 81032c41739..663716d623b 100644 --- a/RELEASES +++ b/RELEASES @@ -1,3 +1,4 @@ +0.73.3 0.73.2 0.73.1 0.73.0 diff --git a/generate-all-mac.js b/generate-all-mac.js index c5dc194b63b..6d69a431a8e 100644 --- a/generate-all-mac.js +++ b/generate-all-mac.js @@ -4,7 +4,14 @@ const { execSync } = require("child_process"); const { join } = require("path"); const { existsSync } = require("fs"); +let onlyOne = false; + function run() { + + if (process.argv.length == 3 && process.argv[2] === 'onlyOne') { + onlyOne = true; + } + const cmd = "npm info react-native-macos versions --json"; console.log("Running: " + cmd); const allVersions = JSON.parse(execSync(cmd).toString()); @@ -20,6 +27,9 @@ function run() { const newReleaseCmd = `node new-release.js ${rnwVersion} mac`; console.log("Running: " + newReleaseCmd); execSync(newReleaseCmd, { stdio: "inherit" }); + if (onlyOne){ + break; + } } } if (existsSync(join(__dirname, "wt-diffs"))) { diff --git a/generate-all.js b/generate-all.js index 899c07ddc42..1ee372bfaeb 100644 --- a/generate-all.js +++ b/generate-all.js @@ -4,7 +4,13 @@ const { execSync } = require("child_process"); const { join } = require("path"); const { existsSync } = require("fs"); +let onlyOne = false; + function run() { + + if (process.argv.length == 3 && process.argv[2] === 'onlyOne') { + onlyOne = true; + } const cmd = "npm info react-native-windows versions --json"; console.log("Running: " + cmd); const allVersions = JSON.parse(execSync(cmd).toString()); @@ -20,6 +26,9 @@ function run() { const newReleaseCmd = `node new-release.js ${rnwVersion}`; console.log("Running: " + newReleaseCmd); execSync(newReleaseCmd, { stdio: "inherit" }); + if (onlyOne){ + break; + } } } if (existsSync(join(__dirname, "wt-diffs"))) {