Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: add chromatic #7

Merged
merged 3 commits into from
Nov 17, 2023
Merged
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
2 changes: 2 additions & 0 deletions .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ jobs:
cache: pnpm
- name: Install all packages
run: pnpm install
- name: Build packages
run: pnpm turbo build
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:
if: steps.check.outputs.can-publish == 'true'
- name: Install all packages
run: pnpm i
if: steps.check.outputs.can-publish == 'true'
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
if: steps.check.outputs.can-publish == 'true'
env:
Expand All @@ -61,3 +60,13 @@ jobs:
token: ${{ github.token }}
published: ${{ steps.release.outputs.published }}
initial-commit: 3d821dfeec0e67a8b33de2993ba292e58b315d06
- name: Build packages
run: pnpm turbo build
if: steps.check.outputs.can-publish != 'true'
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitOnceUploaded: true
onlyChanged: true
workingDir: 'packages/frosted-ui'