Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update props #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
49 changes: 19 additions & 30 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,25 @@
# This is a basic workflow to help you get started with Actions
# .github/workflows/chromatic.yml

name: CI
# Workflow name
name: 'Chromatic'

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Event for the workflow
on: push

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
# List of jobs
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
chromatic-deployment:
# Operating System
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
# Job steps
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
- uses: actions/checkout@v1
- name: Install dependencies
run: yarn
# 👇 Adds Chromatic as a step in the workflow
- name: Publish to Chromatic
uses: chromaui/action@v1
# Chromatic GitHub Action options
with:
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}git
2 changes: 1 addition & 1 deletion src/common/button/button.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const Button = () => {
return <button className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">button</button>
return <button className="bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-2 rounded">button</button>
}