Skip to content

Commit

Permalink
chore(ci): add names to the jobs in chromatic.yml [ci visual] (#4757)
Browse files Browse the repository at this point in the history
add names to the jobs in chromatic.yml
  • Loading branch information
droshev authored Aug 8, 2023
1 parent fa1bf31 commit b0459ec
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,20 @@ env:
NX_CLOUD_AUTH_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }}

jobs:
test:
chromatic-deployment:
if: "contains(github.event.head_commit.message, '[ci visual]') || contains(github.event.head_commit.message, 'chore(deps-dev)') || github.event.ref == 'refs/heads/main'"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # Chromatic requires to have full git history
- name: Setup Node.js and Cache
uses: ./.github/actions/nodejs
- run: yarn run build
- uses: chromaui/action@v1
- name: Build Styles
run: yarn run build
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit b0459ec

Please sign in to comment.