Skip to content

Commit 642caf8

Browse files
committed
Revert the previous change + modify the nuget package generation script to not use the spawnProcess helper.
1 parent a5d2f65 commit 642caf8

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/scripts/generate-nuget-package.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fs from 'fs';
22
import path from 'path';
3+
import { execSync } from 'child_process';
34
import { fileURLToPath } from 'url';
4-
import { spawnProcess } from '../../scripts/utils/processes.mjs';
55
import { displayInfoMessage, displayConfirmationMessage, displayErrorMessage } from '../../scripts/utils/console.mjs';
66

77
const __dirname = path.dirname(fileURLToPath(import.meta.url));
@@ -53,8 +53,9 @@ fs.writeFileSync(NUSPEC_PATH, nuspecContent, 'utf8');
5353
// The -Version flag overrides $version$ in the nuspec.
5454
// -OutputDirectory places the nupkg in the repo root.
5555
try {
56-
await spawnProcess(
57-
`nuget pack ${NUSPEC_PATH} -Version ${VERSION} -OutputDirectory ${REPO_ROOT} -BasePath ${REPO_ROOT}`
56+
execSync(
57+
`nuget pack ${NUSPEC_PATH} -Version ${VERSION} -OutputDirectory ${REPO_ROOT} -BasePath ${REPO_ROOT}`,
58+
{ stdio: 'inherit' }
5859
);
5960
displayConfirmationMessage(`Package generated: ${REPO_ROOT}/Handsontable.${VERSION}.nupkg`);
6061
} catch (error) {

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ jobs:
853853
run: |
854854
sudo apt-get update
855855
sudo apt-get install -y mono-complete
856-
curl -o /tmp/nuget.exe https://dist.nuget.org/win-x86-commandline/v5.11.6/nuget.exe
856+
curl -o /tmp/nuget.exe https://dist.nuget.org/win-x86-commandline/v7.3.0/nuget.exe
857857
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'
858858
859859
- name: Generate NuGet package

0 commit comments

Comments
 (0)