Commit 642caf8ce0 for handsontable.com
commit 642caf8ce051b4ffa0aa38ceb17ad44ab592e3e7
Author: Jan Siegel <js.ziggle@gmail.com>
Date: Mon Mar 9 09:47:06 2026 +0100
Revert the previous change + modify the nuget package generation script to not use the spawnProcess helper.
diff --git a/.github/scripts/generate-nuget-package.mjs b/.github/scripts/generate-nuget-package.mjs
index 1925f27585..7e0e56b1cd 100644
--- a/.github/scripts/generate-nuget-package.mjs
+++ b/.github/scripts/generate-nuget-package.mjs
@@ -1,7 +1,7 @@
import fs from 'fs';
import path from 'path';
+import { execSync } from 'child_process';
import { fileURLToPath } from 'url';
-import { spawnProcess } from '../../scripts/utils/processes.mjs';
import { displayInfoMessage, displayConfirmationMessage, displayErrorMessage } from '../../scripts/utils/console.mjs';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
@@ -53,8 +53,9 @@ fs.writeFileSync(NUSPEC_PATH, nuspecContent, 'utf8');
// The -Version flag overrides $version$ in the nuspec.
// -OutputDirectory places the nupkg in the repo root.
try {
- await spawnProcess(
- `nuget pack ${NUSPEC_PATH} -Version ${VERSION} -OutputDirectory ${REPO_ROOT} -BasePath ${REPO_ROOT}`
+ execSync(
+ `nuget pack ${NUSPEC_PATH} -Version ${VERSION} -OutputDirectory ${REPO_ROOT} -BasePath ${REPO_ROOT}`,
+ { stdio: 'inherit' }
);
displayConfirmationMessage(`Package generated: ${REPO_ROOT}/Handsontable.${VERSION}.nupkg`);
} catch (error) {
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index f79b40dbd2..bc58435a4a 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -853,7 +853,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y mono-complete
- curl -o /tmp/nuget.exe https://dist.nuget.org/win-x86-commandline/v5.11.6/nuget.exe
+ curl -o /tmp/nuget.exe https://dist.nuget.org/win-x86-commandline/v7.3.0/nuget.exe
sudo bash -c 'echo "#!/bin/bash" > /usr/local/bin/nuget && echo "exec mono /tmp/nuget.exe \"$@\"" >> /usr/local/bin/nuget && chmod +x /usr/local/bin/nuget'
- name: Generate NuGet package