Skip to content

Commit b0d6585

Browse files
[cherrypick][rc] pub: dont fail on win arm64 (#2291)
[auto][cherrypick] ee24e57 pub: dont fail on win arm64 (#2290)
1 parent 5f43d84 commit b0d6585

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

cli/src/commands/publishers/node-publisher.ts

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -174,18 +174,17 @@ function alignNodePackage(options: PublisherOptions, distDir: string) {
174174
});
175175

176176
if (!allFilesMoved) {
177+
// Windows ARM64 (aarch64-pc-windows-msvc) alignment failure should not fail the entire process
178+
if (platform === 'aarch64-pc-windows-msvc') {
179+
Log.stepProgress(
180+
`Windows ARM64 files not found (may not be built in private repo), skipping`,
181+
);
182+
Log.stepEnd(`Skipped ${platform} (files not found)`);
183+
return;
184+
}
185+
177186
allPlatformsAligned = false;
178187
Log.stepEnd(`Failed to move all files for ${platform}`, 'failure');
179-
// Windows ARM64 (aarch64-pc-windows-msvc) alignment failure should not fail the entire process
180-
// if (platform === 'aarch64-pc-windows-msvc') {
181-
// Log.stepProgress(
182-
// `Windows ARM64 files not found (may not be built in private repo), skipping`,
183-
// );
184-
// Log.stepEnd(`Skipped ${platform} (files not found)`);
185-
// } else {
186-
// allPlatformsAligned = false;
187-
// Log.stepEnd(`Failed to move all files for ${platform}`, 'failure');
188-
//}
189188
return;
190189
}
191190

@@ -254,7 +253,7 @@ function publishIndividual(
254253
Log.stepProgress(`Running ${command}`);
255254
execSync(command, { cwd: platformDir });
256255
return true;
257-
} catch (error) {
256+
} catch {
258257
Log.stepProgress(`Failed to publish ${platform}`, 'failure');
259258
return false;
260259
}

0 commit comments

Comments
 (0)