From 17d33ba28878ead46c61cb1a4588b8bfc65f3b37 Mon Sep 17 00:00:00 2001 From: Joseph Flinn Date: Mon, 21 Dec 2020 23:53:41 +0000 Subject: [PATCH] fixing sudo issue. Splitting out the npm install => npm dist --- .github/workflows/build.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 045c4dc54c..29e72bddad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,8 +18,8 @@ jobs: - name: Set up cloc run: | - apt update - apt -y install cloc + sudo apt update + sudo apt -y install cloc - name: Print lines of code run: cloc --include-lang TypeScript,JavaScript,HTML,Sass,CSS --vcs git @@ -37,11 +37,14 @@ jobs: with: node-version: '10.x' - - name: Setup & Build - run: | - npm install - npm sub:init - npm dist + - name: Install + run: npm install + + - name: Setup sub-module + run: npm sub:init + + - name: Build + run: npm dist - name: Zip shell: cmd