Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,28 @@ name: CI

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
build:
runs-on: ubuntu-latest

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Required to retrieve git history

- name: install dependencies
run: yarn
- name: Install dependencies
run: yarn

# Build packages
- name: Run a one-line script
run: npx lerna run build
- name: Build
run: npx lerna run build

- uses: chromaui/action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitZeroOnChanges: true,
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/node_modules
/node_modules

build-storybook.log
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"workspaces": [
"packages/*"
],
"scripts": {
"build-storybook": "lerna run build-storybook --scope=compare-image-slider --"
},
"devDependencies": {
"@commitlint/cli": "^9.1.1",
"@commitlint/config-conventional": "^9.1.1",
Expand Down
4 changes: 3 additions & 1 deletion packages/compare-image-slider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"build": "rollup -c",
"prepublishOnly": "yarn run build",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook"
"build-storybook": "build-storybook",
"chromatic": "npx chromatic --project-token yhpi7jhkjh"
},
"types": "build/types/compare-image-slider.d.ts",
"dependencies": {
Expand All @@ -37,6 +38,7 @@
"@storybook/preset-typescript": "^3.0.0",
"@storybook/web-components": "^5.3.19",
"babel-loader": "^8.1.0",
"chromatic": "^5.1.0",
"fork-ts-checker-webpack-plugin": "^5.0.5",
"lit-html": "^1.2.1",
"rollup": "^2.18.1",
Expand Down
Loading