Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 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
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ permissions:

jobs:
build:
if: github.event_name == 'pull_request' ||
(github.event_name == 'push' && !contains(github.event.head_commit.message, '[skip ci]'))
if: github.event_name == 'pull_request' ||
(github.event_name == 'push' && !contains(github.event.head_commit.message, '[skip ci]'))
runs-on: ubuntu-latest

steps:
Expand All @@ -28,13 +28,13 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
node-version: '20'
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run Lint
run: pnpm lint

Expand Down Expand Up @@ -79,4 +79,4 @@ jobs:

- name: Fail job if build failed
if: steps.build.outcome == 'failure'
run: exit 1
run: exit 1
1 change: 1 addition & 0 deletions .storybook/vitest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import '@storybook/addon-a11y/preview';

import { setProjectAnnotations } from '@storybook/react-vite';

import * as globalStorybookConfig from './preview';

// This is an important step to apply the right configuration when testing your stories.
Expand Down
7 changes: 4 additions & 3 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ version: 0.2
phases:
pre_build:
commands:
- npm install
- npm install -g pnpm
- pnpm install --frozen-lockfile
build:
commands:
- npm run build
- pnpm build

artifacts:
files:
- '**/*'
base-directory: build
base-directory: dist
File renamed without changes.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"build": "pnpm lint && tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview",
"svgr": "npx @svgr/cli -d src/assets/svg --ignore-existing --typescript --no-dimensions public/svg",
Expand All @@ -18,7 +18,8 @@
"axios": "^1.10.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-redux": "^9.2.0"
"react-redux": "^9.2.0",
"react-router-dom": "^7.6.3"
},
"devDependencies": {
"@chromatic-com/storybook": "^4.0.1",
Expand Down
Loading
Loading