From e394c699950c3a1ab55755f9bf44bb5f6bea7178 Mon Sep 17 00:00:00 2001 From: RyanKirby89 <58255317+RyanKirby89@users.noreply.github.com> Date: Tue, 4 Aug 2020 13:42:35 +0100 Subject: [PATCH] fix: npm deploy v1 (#64) * fix: npm production build * fix: gitignore --- .github/workflows/npm-publish.yml | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 5ef9d68f..06403193 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -33,7 +33,7 @@ jobs: - name: Install dependencies run: yarn install - name: Build app - run: yarn build + run: yarn prod-build - name: Remove node_modules run: rm -rf node_modules - name: Release diff --git a/package.json b/package.json index 20d6412a..4f332c20 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "dev": "webpack-dev-server", "deploy": "now --target=production", "build": "webpack", + "prod-build": "webpack --mode=production", "now-build": "webpack --mode=production", "semantic-release": "semantic-release" },