Merge branch 'sghsri:main' into master

This commit is contained in:
2024-02-09 18:40:39 -06:00
committed by GitHub
3 changed files with 43 additions and 0 deletions

26
.github/workflows/chromatic.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: "Chromatic"
on: [push, pull_request_target]
jobs:
chromatic:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install dependencies
run: pnpm install
- name: Publish to Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitZeroOnChanges: true
autoAcceptChanges: "main"

View File

@@ -59,6 +59,7 @@
"@unocss/transformer-directives": "^0.58.4", "@unocss/transformer-directives": "^0.58.4",
"@unocss/transformer-variant-group": "^0.58.4", "@unocss/transformer-variant-group": "^0.58.4",
"@vitejs/plugin-react-swc": "^3.6.0", "@vitejs/plugin-react-swc": "^3.6.0",
"chromatic": "^10.9.1",
"cssnano": "^6.0.3", "cssnano": "^6.0.3",
"cssnano-preset-advanced": "^6.0.3", "cssnano-preset-advanced": "^6.0.3",
"dotenv": "^16.4.1", "dotenv": "^16.4.1",

16
pnpm-lock.yaml generated
View File

@@ -135,6 +135,9 @@ devDependencies:
'@vitejs/plugin-react-swc': '@vitejs/plugin-react-swc':
specifier: ^3.6.0 specifier: ^3.6.0
version: 3.6.0(vite@5.0.12) version: 3.6.0(vite@5.0.12)
chromatic:
specifier: ^10.9.1
version: 10.9.1
cssnano: cssnano:
specifier: ^6.0.3 specifier: ^6.0.3
version: 6.0.3(postcss@8.4.33) version: 6.0.3(postcss@8.4.33)
@@ -6084,6 +6087,19 @@ packages:
engines: {node: '>=10'} engines: {node: '>=10'}
dev: true dev: true
/chromatic@10.9.1:
resolution: {integrity: sha512-6Ypho74fQu45ns48KaBuIMKqlzik0fJo//dLB3lkiphz8vCiMm75uU3xhkfZh4NbOS51MbWZKjPfefM53bIHpg==}
hasBin: true
peerDependencies:
'@chromatic-com/cypress': ^0.5.2 || ^1.0.0
'@chromatic-com/playwright': ^0.5.2 || ^1.0.0
peerDependenciesMeta:
'@chromatic-com/cypress':
optional: true
'@chromatic-com/playwright':
optional: true
dev: true
/chrome-extension-toolkit@0.0.51: /chrome-extension-toolkit@0.0.51:
resolution: {integrity: sha512-XzOOE2+/aYG43bJOwuJT4oWcn80jBJr5mwGyrSzKKFoqALixT15AsPcfZId/UOoc4pIavu2XcHeJga6ng0m1jQ==} resolution: {integrity: sha512-XzOOE2+/aYG43bJOwuJT4oWcn80jBJr5mwGyrSzKKFoqALixT15AsPcfZId/UOoc4pIavu2XcHeJga6ng0m1jQ==}
dependencies: dependencies: