From 2772318932c135bef00f84e7071152ab310545d8 Mon Sep 17 00:00:00 2001 From: Shams mosowi Date: Thu, 30 Apr 2020 14:56:35 +0800 Subject: [PATCH] Set hosting target --- cloudbuild.yaml | 7 ++++++- www/package.json | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 51d6c716..9c4a5cf7 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -16,7 +16,12 @@ steps: entrypoint: yarn args: ["build"] dir: "www" - + - name: node:10.15.1 + entrypoint: yarn + args: + - "target" + - "${_HOSTING_TARGET}" + dir: "www" - name: node:10.15.1 entrypoint: yarn args: diff --git a/www/package.json b/www/package.json index fa498df5..51f38b0b 100644 --- a/www/package.json +++ b/www/package.json @@ -58,6 +58,7 @@ }, "scripts": { "start": "react-scripts start", + "target": "firebase target:apply hosting firetable", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject",