diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 6c8c6c4b..35e61479 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -1,9 +1,9 @@ name: github pages release -on: workflow_dispatch -# push: -# branches: -# - main +on: + push: + branches: + - main # paths: # - '.storybook' # - 'public' @@ -28,7 +28,7 @@ jobs: CI: false run: | ls - npm install + npm ci npm run build - name: Build storybook diff --git a/.github/workflows/sample-app-web.yml b/.github/workflows/sample-app-web.yml index 76217932..4642aae2 100644 --- a/.github/workflows/sample-app-web.yml +++ b/.github/workflows/sample-app-web.yml @@ -37,7 +37,10 @@ jobs: # Site Testing steps - name: Install dependencies - run: npm install + run: npm ci + + - name: Build + run: CI=false npm run build - name: Run Unit Tests and generate coverage report run: npm run test.coverage diff --git a/Dockerfile b/Dockerfile index 8bf12f82..c9593816 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,4 @@ ENV PATH="$HOME/sc-4.8.2-linux/bin:$PATH" # web app WORKDIR /sample-app-web COPY . . -RUN npm install \ No newline at end of file +RUN npm ci