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
30 changes: 30 additions & 0 deletions .github/workflows/ci-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI (dev)

on:
push:
branches: [dev]

jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'npm'

- name: Install
run: npm ci

- name: Lint
run: npm run lint

- name: Typecheck
run: npm run lint:ts

- name: Build
run: npm run build
18 changes: 18 additions & 0 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,28 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # semantic-release needs full history

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Typecheck
run: npm run lint:ts

- name: Build package
run: npm run build

- name: Build Storybook with base path
run: npm run build-storybook:gh-pages
env:
Expand All @@ -52,3 +64,9 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

- name: Release (semantic-release)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
72 changes: 0 additions & 72 deletions .github/workflows/npm-publish.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: PR Checks (to main)

on:
pull_request:
branches: [main]

jobs:
pr-checks:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
actions: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'npm'

- name: Install
run: npm ci

- name: Lint
run: npm run lint

- name: Typecheck
run: npm run lint:ts

- name: Build package
run: npm run build

- name: Build Storybook
run: npm run build-storybook

- name: Upload Storybook artifact
uses: actions/upload-pages-artifact@v3
with:
path: storybook-static
90 changes: 0 additions & 90 deletions .github/workflows/publish.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/release.yml

This file was deleted.

Empty file added .husky/pre-commit
Empty file.
30 changes: 30 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

echo "πŸ” Running linters before push..."

# ЗапускаСм Prettier

npm run format || {
echo "❌ Prettier failed. Fix errors before pushing."
exit 1
}

# ЗапускаСм ESLint
npm run lint || {
echo "❌ ESLint failed. Fix errors before pushing."
exit 1
}

# ЗапускаСм TypeScript ΠΏΡ€ΠΎΠ²Π΅Ρ€ΠΊΡƒ
npm run lint:ts || {
echo "❌ TypeScript check failed. Fix type errors before pushing."
exit 1
}

npm run build || {
echo "❌ Build failed. Fix errors before pushing."
exit 1
}

echo "βœ… All checks passed!"
5 changes: 0 additions & 5 deletions .ladle/config.js

This file was deleted.

10 changes: 0 additions & 10 deletions .ladle/config.mjs

This file was deleted.

7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
dist
.storybook-static
*.log
package-lock.json
pnpm-lock.yaml
bun.lock
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"useTabs": true,
"trailingComma": "es5",
"arrowParens": "avoid",
"printWidth": 80,
"endOfLine": "lf"
}
Loading