Skip to content

Commit b137aae

Browse files
committed
Fix missing import
1 parent 784ce7c commit b137aae

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

packages/build/src/release.ts

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import os from 'os';
22
import Config from './config';
33
import compileExec from './compile-exec';
44
import uploadArtifactToEvergreen from './evergreen';
5+
import uploadArtifactToDownloads from './upload-artifact';
56
import uploadDownloadCenterConfig from './download-center';
67
import Platform from './platform';
78
import zip from './zip';
@@ -15,25 +16,25 @@ import S3 from 'aws-sdk/clients/s3';
1516
const release = async(config: Config) => {
1617
const platform = os.platform();
1718

18-
// 1. Build the executable.
19+
// - Build the executable.
1920
await compileExec(config.input, config.outputDir, platform);
2021

21-
// 2. Sign the executable for each OS.
22+
// - Sign the executable for each OS.
2223

23-
// 3. Zip the executable.
24+
// - Zip the executable.
2425
const artifact = await zip(config.input, config.outputDir, platform, config.version);
2526

26-
// 4. Create & sign the .deb (only on linux)
27-
// 5. Create & sign the .rpm (only on linux)
28-
// 6. Create & sign the .msi (only on win)
29-
//
30-
// If this is a new release tag.
27+
// - Create & sign the .deb (only on linux)
28+
// - Create & sign the .rpm (only on linux)
29+
// - Create & sign the .msi (only on win)
30+
// -
31+
// - this is a new release tag.
3132
//
32-
// 1. Publish the .deb (only on linux)
33-
// 2. Publish the .rpm (only on linux)
34-
// 3. Create PR for Homebrew (only on macos)
33+
// - Publish the .deb (only on linux)
34+
// - Publish the .rpm (only on linux)
35+
// - Create PR for Homebrew (only on macos)
3536

36-
// 4. Upload artifacts to S3 for Evergreen and downloads.
37+
// - Upload artifacts to S3 for Evergreen and downloads.
3738
await uploadArtifactToEvergreen(
3839
artifact,
3940
config.evgAwsKey,
@@ -49,10 +50,12 @@ const release = async(config: Config) => {
4950
config.revision
5051
);
5152

52-
// 5. Create Github release.
53+
// - Create Github release.
5354

54-
// 6. Create download center config and upload. (only on macos)
55-
// 7. Publish to NPM. (only on macos)
55+
// - Create download center config and upload.
56+
// - Publish to NPM.
57+
//
58+
// These only need to happen once so we only run them on MacOS.
5659
if (platform === Platform.MacOs) {
5760
await uploadDownloadCenterConfig(
5861
config.version,

0 commit comments

Comments
 (0)