@auto-canary/cocoapods
Advanced tools
Comparing version 9.19.6-canary.1066.14016.0 to 9.20.0-canary.1066.14021.0
@@ -77,3 +77,2 @@ "use strict"; | ||
catch (error) { | ||
console.log(error); | ||
throw new Error(`Error updating version in podspec: ${podspecPath}`); | ||
@@ -98,9 +97,4 @@ } | ||
}); | ||
auto.hooks.modifyConfig.tap(this.name, (config) => { | ||
config.noVersionPrefix = true; | ||
return config; | ||
}); | ||
auto.hooks.getPreviousVersion.tapPromise(this.name, async () => { | ||
return auto.prefixRelease(getVersion(this.options.podspecPath)); | ||
}); | ||
auto.hooks.modifyConfig.tap(this.name, config => (Object.assign(Object.assign({}, config), { noVersionPrefix: true }))); | ||
auto.hooks.getPreviousVersion.tapPromise(this.name, async () => auto.prefixRelease(getVersion(this.options.podspecPath))); | ||
auto.hooks.version.tapPromise(this.name, async (version) => { | ||
@@ -113,3 +107,2 @@ const previousVersion = getVersion(this.options.podspecPath); | ||
await updatePodspecVersion(this.options.podspecPath, releaseVersion); | ||
// Ensure tag is on this commit, changelog will be added automatically | ||
await core_1.execPromise('git', [ | ||
@@ -130,29 +123,29 @@ 'tag', | ||
]); | ||
if (this.options.specsRepo) { | ||
try { | ||
await core_1.execPromise('pod', [ | ||
'repo', | ||
'add', | ||
'autoPublishRepo', | ||
this.options.specsRepo | ||
]); | ||
auto.logger.log.info(logMessage(`Pushing to specs repo: ${this.options.specsRepo}`)); | ||
await core_1.execPromise('pod', [ | ||
'repo', | ||
'push', | ||
'autoPublishRepo', | ||
this.options.podspecPath | ||
]); | ||
} | ||
catch (error) { | ||
auto.logger.log.error(logMessage(`Error pushing to specs repo: ${this.options.specsRepo}. Error: ${error}`)); | ||
} | ||
finally { | ||
await core_1.execPromise('pod', ['repo', 'remove', 'autoPublishRepo']); | ||
} | ||
} | ||
else { | ||
if (!this.options.specsRepo) { | ||
auto.logger.log.info(logMessage(`Pushing to Cocoapods trunk`)); | ||
await core_1.execPromise('pod', ['trunk', 'push', this.options.podspecPath]); | ||
return; | ||
} | ||
try { | ||
await core_1.execPromise('pod', [ | ||
'repo', | ||
'add', | ||
'autoPublishRepo', | ||
this.options.specsRepo | ||
]); | ||
auto.logger.log.info(logMessage(`Pushing to specs repo: ${this.options.specsRepo}`)); | ||
await core_1.execPromise('pod', [ | ||
'repo', | ||
'push', | ||
'autoPublishRepo', | ||
this.options.podspecPath | ||
]); | ||
} | ||
catch (error) { | ||
auto.logger.log.error(logMessage(`Error pushing to specs repo: ${this.options.specsRepo}. Error: ${error}`)); | ||
process.exit(1); | ||
} | ||
finally { | ||
await core_1.execPromise('pod', ['repo', 'remove', 'autoPublishRepo']); | ||
} | ||
}); | ||
@@ -159,0 +152,0 @@ } |
{ | ||
"name": "@auto-canary/cocoapods", | ||
"version": "9.19.6-canary.1066.14016.0", | ||
"version": "9.20.0-canary.1066.14021.0", | ||
"main": "dist/index.js", | ||
@@ -39,3 +39,3 @@ "description": "Use auto to version your cocoapod", | ||
"dependencies": { | ||
"@auto-canary/core": "9.19.6-canary.1066.14016.0", | ||
"@auto-canary/core": "9.20.0-canary.1066.14021.0", | ||
"fp-ts": "^2.5.3", | ||
@@ -46,3 +46,3 @@ "io-ts": "^2.1.2", | ||
}, | ||
"gitHead": "d217ac5a3d6262d3ab47557bcc69db1b1f97452b" | ||
"gitHead": "0510e692266751c3f882264b8a5328593964cd2d" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18371
231
+ Added@auto-canary/bot-list@9.20.0-canary.1066.14021.0(transitive)
+ Added@auto-canary/core@9.20.0-canary.1066.14021.0(transitive)
- Removed@auto-canary/bot-list@9.19.6-canary.1066.14016.0(transitive)
- Removed@auto-canary/core@9.19.6-canary.1066.14016.0(transitive)