disable auto publish

Summary: electro-builder automatically publishes when it detects builds on TravisCI. This disables this behaviour, as we want to manually publish releases.

Reviewed By: jknoxville

Differential Revision: D8783066

fbshipit-source-id: d8723c87b879b3ef7ee02585997a13cb55095e65
This commit is contained in:
Daniel Büchele
2018-07-11 07:53:43 -07:00
committed by Facebook Github Bot
parent c048e03d03
commit 9f95698492
7 changed files with 17 additions and 18 deletions

View File

@@ -22,4 +22,4 @@ module.name_mapper='sonar' -> '<PROJECT_ROOT>/src/index.js'
suppress_type=$FlowFixMe suppress_type=$FlowFixMe
[version] [version]
0.70.0 0.76.0

View File

@@ -1,5 +1,5 @@
// flow-typed signature: f0e399a136d6e8dc8b1fbdc078e2850c // flow-typed signature: 45384ed25d019e0595020cc30e78b80f
// flow-typed version: ed397013d1/express_v4.x.x/flow_>=v0.32.x // flow-typed version: d11eab7bb5/express_v4.x.x/flow_>=v0.32.x
import type { Server } from 'http'; import type { Server } from 'http';
import type { Socket } from 'net'; import type { Socket } from 'net';
@@ -21,7 +21,7 @@ declare type express$RequestParams = {
declare class express$Request extends http$IncomingMessage mixins express$RequestResponseBase { declare class express$Request extends http$IncomingMessage mixins express$RequestResponseBase {
baseUrl: string; baseUrl: string;
body: any; body: mixed;
cookies: {[cookie: string]: string}; cookies: {[cookie: string]: string};
connection: Socket; connection: Socket;
fresh: boolean; fresh: boolean;
@@ -161,20 +161,18 @@ declare class express$Router extends express$Route {
id: string id: string
) => mixed ) => mixed
): void; ): void;
(req: http$IncomingMessage, res: http$ServerResponse, next?: ?express$NextFunction): void;
// Can't use regular callable signature syntax due to https://github.com/facebook/flow/issues/3084
$call: (req: http$IncomingMessage, res: http$ServerResponse, next?: ?express$NextFunction) => void;
} }
declare class express$Application extends express$Router mixins events$EventEmitter { declare class express$Application extends express$Router mixins events$EventEmitter {
constructor(): void; constructor(): void;
locals: {[name: string]: mixed}; locals: {[name: string]: mixed};
mountpath: string; mountpath: string;
listen(port: number, hostname?: string, backlog?: number, callback?: (err?: ?Error) => mixed): Server; listen(port: number, hostname?: string, backlog?: number, callback?: (err?: ?Error) => mixed): ?Server;
listen(port: number, hostname?: string, callback?: (err?: ?Error) => mixed): Server; listen(port: number, hostname?: string, callback?: (err?: ?Error) => mixed): ?Server;
listen(port: number, callback?: (err?: ?Error) => mixed): Server; listen(port: number, callback?: (err?: ?Error) => mixed): ?Server;
listen(path: string, callback?: (err?: ?Error) => mixed): Server; listen(path: string, callback?: (err?: ?Error) => mixed): ?Server;
listen(handle: Object, callback?: (err?: ?Error) => mixed): Server; listen(handle: Object, callback?: (err?: ?Error) => mixed): ?Server;
disable(name: string): void; disable(name: string): void;
disabled(name: string): boolean; disabled(name: string): boolean;
enable(name: string): express$Application; enable(name: string): express$Application;
@@ -187,6 +185,8 @@ declare class express$Application extends express$Router mixins events$EventEmit
set(name: string, value: mixed): mixed; set(name: string, value: mixed): mixed;
render(name: string, optionsOrFunction: {[name: string]: mixed}, callback: express$RenderCallback): void; render(name: string, optionsOrFunction: {[name: string]: mixed}, callback: express$RenderCallback): void;
handle(req: http$IncomingMessage, res: http$ServerResponse, next?: ?express$NextFunction): void; handle(req: http$IncomingMessage, res: http$ServerResponse, next?: ?express$NextFunction): void;
// callable signature is not inherited
(req: http$IncomingMessage, res: http$ServerResponse, next?: ?express$NextFunction): void;
} }
declare module 'express' { declare module 'express' {

View File

@@ -34,7 +34,7 @@
"eslint-plugin-prettier": "^2.4.0", "eslint-plugin-prettier": "^2.4.0",
"eslint-plugin-react": "^7.5.1", "eslint-plugin-react": "^7.5.1",
"eslint-plugin-relay": "^0.0.20", "eslint-plugin-relay": "^0.0.20",
"flow-bin": "^0.69.0", "flow-bin": "^0.76.0",
"glob": "^7.1.2", "glob": "^7.1.2",
"prettier": "1.13.6" "prettier": "1.13.6"
}, },

View File

@@ -106,6 +106,7 @@ function buildDist(buildFolder) {
return builder return builder
.build({ .build({
appDir: buildFolder, appDir: buildFolder,
publish: 'never',
config: { config: {
appId: `com.facebook.sonar`, appId: `com.facebook.sonar`,
directories: { directories: {

View File

@@ -121,7 +121,6 @@ class PluginContainer extends Component<Props, State> {
} }
return ( return (
// $FlowFixMe: Flow doesn't know of React.Fragment yet
<React.Fragment> <React.Fragment>
<Container key="plugin"> <Container key="plugin">
<ErrorBoundary <ErrorBoundary

View File

@@ -195,7 +195,6 @@ class MainSidebar extends Component<MainSidebarProps> {
/> />
))} ))}
{clients.map((client: Client) => ( {clients.map((client: Client) => (
// $FlowFixMe: Flow doesn't know of React.Fragment yet
<React.Fragment key={client.id}> <React.Fragment key={client.id}>
<SidebarHeader>{client.query.app}</SidebarHeader> <SidebarHeader>{client.query.app}</SidebarHeader>
{plugins {plugins

View File

@@ -1958,9 +1958,9 @@ flat-cache@^1.2.1:
graceful-fs "^4.1.2" graceful-fs "^4.1.2"
write "^0.2.1" write "^0.2.1"
flow-bin@^0.69.0: flow-bin@^0.76.0:
version "0.69.0" version "0.76.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.69.0.tgz#053159a684a6051fcbf0b71a2eb19a9679082da6" resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.76.0.tgz#eb00036991c3abc106743fcbc7ee321f02aa4faa"
for-in@^1.0.1, for-in@^1.0.2: for-in@^1.0.1, for-in@^1.0.2:
version "1.0.2" version "1.0.2"