Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jtaox committed Apr 20, 2019
1 parent f4a3d0d commit 1303198
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/publish.ts
Expand Up @@ -145,8 +145,7 @@ export function publish(options: IPublishOptions = {}): Promise<any> {
const baseImagesUrl = options.baseImagesUrl;
const useYarn = options.useYarn;

promise = versionBump(options.cwd, options.version)
.then(() => tmpName())
promise = tmpName()
.then(packagePath => pack({ packagePath, cwd, baseContentUrl, baseImagesUrl, useYarn }));
}

Expand All @@ -159,7 +158,8 @@ export function publish(options: IPublishOptions = {}): Promise<any> {
? Promise.resolve(options.pat)
: getPublisher(manifest.publisher).then(p => p.pat);

return patPromise.then(pat => _publish(packagePath, pat, manifest));
return versionBump(options.cwd, options.version)
.then(() => patPromise.then(pat => _publish(packagePath, pat, manifest)))
});
}

Expand Down

0 comments on commit 1303198

Please sign in to comment.