Skip to content

Commit

Permalink
Better ci (#127)
Browse files Browse the repository at this point in the history
* Use `npm ci` and build app on PRs

* deploy on main

* Use same CI env var setting for PR pipeline and deployment

---------

Co-authored-by: Benjamin Karran <[email protected]>
  • Loading branch information
ebekebe and ebekebe authored Jun 20, 2024
1 parent 7a84dfe commit 5b5d269
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: github pages release

on: workflow_dispatch
# push:
# branches:
# - main
on:
push:
branches:
- main
# paths:
# - '.storybook'
# - 'public'
Expand All @@ -28,7 +28,7 @@ jobs:
CI: false
run: |
ls
npm install
npm ci
npm run build
- name: Build storybook
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/sample-app-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ ENV PATH="$HOME/sc-4.8.2-linux/bin:$PATH"
# web app
WORKDIR /sample-app-web
COPY . .
RUN npm install
RUN npm ci

0 comments on commit 5b5d269

Please sign in to comment.