mirror of
https://github.com/atom/atom.git
synced 2026-01-26 23:38:48 -05:00
Use computed version when cleaning up nupkg files in Windows build
This commit is contained in:
@@ -29,7 +29,7 @@ module.exports = (packagedAppPath) => {
|
||||
}
|
||||
|
||||
for (let nupkgPath of glob.sync(`${CONFIG.buildOutputPath}/atom-*.nupkg`)) {
|
||||
if (!nupkgPath.includes(CONFIG.appMetadata.version)) {
|
||||
if (!nupkgPath.includes(CONFIG.computedAppVersion)) {
|
||||
console.log(`Deleting downloaded nupkg for previous version at ${nupkgPath} to prevent it from being stored as an artifact`)
|
||||
fs.unlinkSync(nupkgPath)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user