From dad39393f7fc5f72170c686ece245a2715158bb5 Mon Sep 17 00:00:00 2001 From: Raiane Rezende Date: Fri, 22 Dec 2023 03:22:34 -0300 Subject: [PATCH] Create chromatic.yml --- .github/workflows/chromatic.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/chromatic.yml diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml new file mode 100644 index 0000000..d283c74 --- /dev/null +++ b/.github/workflows/chromatic.yml @@ -0,0 +1,28 @@ +# Workflow name +name: 'Chromatic Publish' + +# Event for the workflow +on: push + +# List of jobs +jobs: + test: + # Operating System + runs-on: ubuntu-latest + # Job steps + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'yarn' + - run: yarn + #👇 Adds Chromatic as a step in the workflow + - uses: chromaui/action@v1 + # Options required for Chromatic's GitHub Action + with: + #👇 Chromatic projectToken, + projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }}