Skip to content
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
16 changes: 9 additions & 7 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
node-version: '22.x'
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
Expand All @@ -33,17 +33,19 @@ jobs:
runs-on: ubuntu-latest
# Job steps
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
with:
node-version: '20.x'
fetch-depth: 0 # Required for Chromatic to determine baseline commits
- uses: actions/setup-node@v4
with:
node-version: '22.x'
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: yarn install --immutable
# 👇 Adds Chromatic as a step in the workflow
- name: Publish to Chromatic
uses: chromaui/action@v1
uses: chromaui/action@latest
# Chromatic GitHub Action options
with:
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
Expand Down
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@
"@types/styled-components": "^5.1.34",
"@typescript-eslint/eslint-plugin": "^8",
"@typescript-eslint/parser": "^8",
"@vitejs/plugin-react": "^4.2.1",
"@vitejs/plugin-react": "^5.1.2",
"babel-plugin-styled-components": "^2.1.4",
"chromatic": "^13.3.3",
"chromatic": "^13.3.4",
"date-fns": "4.1.0",
"dayjs": "1.11.13",
"eslint": "^9",
Expand All @@ -118,9 +118,9 @@
"ts-node": "^10.9.1",
"typescript": "^5.5.3",
"typescript-eslint": "^8",
"vite": "^5.2.11",
"vite-plugin-dts": "^3.9.1",
"vitest": "^2.0.3",
"vite": "^7.3.0",
"vite-plugin-dts": "^4.3.0",
"vitest": "^2.1.8",
"watch": "^1.0.2"
},
"peerDependencies": {
Expand All @@ -133,5 +133,8 @@
"@types/react": "18.3.2",
"@types/react-dom": "18.3.0"
},
"packageManager": "yarn@4.5.3"
"packageManager": "yarn@4.5.3",
"engines": {
"node": ">=22.12.0"
}
}
2 changes: 2 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ if (!isBundledBuild) {
}

const buildOptions: BuildOptions = {
target: 'baseline-widely-available',
emptyOutDir: false,
minify: false,
lib: {
Expand All @@ -42,6 +43,7 @@ const buildOptions: BuildOptions = {
react: "React",
"styled-components": "styled",
"react-dom": "ReactDOM",
"react/jsx-runtime": "jsxRuntime",
},
},
},
Expand Down
Loading