Skip to content

Commit d6228bf

Browse files
committed
fix: await promise in release
1 parent 4395dd7 commit d6228bf

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/lib/release.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ export default class Release extends Base {
3131
const t = new Date();
3232

3333
if (!this.isCI) {
34-
this.bump();
34+
await this.bump();
3535
} else {
3636
if (glob.globSync(`${this.dist}/*.xpi`).length == 0) {
3737
this.logger.error(
3838
"No xpi file found, are you sure you have run the build?",
3939
);
4040
}
41-
this.uploadXPI();
42-
this.uploadUpdateJSON();
41+
await this.uploadXPI();
42+
await this.uploadUpdateJSON();
4343
}
4444

4545
this.logger.success(
@@ -52,8 +52,8 @@ export default class Release extends Base {
5252
*
5353
* release: bump version, run build, git add, git commit, git tag, git push
5454
*/
55-
bump() {
56-
versionBump(this.ctx.release.bumpp);
55+
async bump() {
56+
await versionBump(this.ctx.release.bumpp);
5757
// const releaseItConfig: ReleaseItConfig = {
5858
// "only-version": true,
5959
// };

0 commit comments

Comments
 (0)