Skip to content

Commit

Permalink
feat(storybook): add a shared decorator for focus-state and static co…
Browse files Browse the repository at this point in the history
…lor settings
  • Loading branch information
castastrophe committed Jan 4, 2024
1 parent d8cba3e commit 5eea5f5
Show file tree
Hide file tree
Showing 379 changed files with 4,019 additions and 6,288 deletions.
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
CHROMATIC_PROJECT_TOKEN=1234abcd
CHROMATIC_PROJECT_ID="Project:64762974a45b8bc5ca1705a2"
CHROMATIC_BUILD_SCRIPT_NAME="ci:storybook"
# Note: the build script here should be defined in .storybook/package.json
# this is used by the chromatic storybook addon to build the storybook on the fly
CHROMATIC_BUILD_SCRIPT_NAME="build"

# NX settings
NX_PREFER_TS_NODE=true
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/file-diff/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ A GitHub Action for comparing compiled assets between branches.

## Inputs

### `path`
### `head-path`

**Required** Path to file or directory for file sizes analysis.

### `diff-path`
### `base-path`

**Optional** Path to another directory against which to perform file comparisons.

Expand Down Expand Up @@ -44,8 +44,8 @@ Total size of all files for this branch in bytes.
name: Compare compiled output file size
uses: "spectrum-tools/gh-action-file-diff"
with:
path: ${{ github.workspace }}/pull-request
diff-path: ${{ github.workspace }}/base-branch
head-path: ${{ github.workspace }}/pull-request
base-path: ${{ github.workspace }}/base-branch
file-glob-pattern: |
components/*/dist/*.{css,json}
components/*/dist/themes/*.css
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/file-diff/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: "File comparisons"
description: "Compares files between branches."
author: "spectrum-tools"
inputs:
path:
head-path:
description: "Path to file or directory for file sizes analysis."
required: false
default: ${{ github.workspace }}
diff-path:
base-path:
description: "Optional path to another directory to perform file size diff against the provided path."
required: false
token:
Expand Down
Loading

0 comments on commit 5eea5f5

Please sign in to comment.