Skip to content

Commit cec3d81

Browse files
chore: version system
chore: changelog chore: version (#119) * init * [autofix.ci] apply automated fixes Update changelogensets.yml Update update-changelog.ts Update update-changelog.ts Update package.json [autofix.ci] apply automated fixes Update package.json chore: update changelog Update update-changelog.ts Update package.json Update chromatic.yml update changelog Update _utils.ts Update _utils.ts v0.0.1 chore: fix repo changelog chore: create changelog config ts Update update-changelog.ts Update update-changelog.ts refactor: changelog chore: config chore: version system Update update-changelog.ts Co-Authored-By: productdevbook <[email protected]>
1 parent cb16f71 commit cec3d81

File tree

17 files changed

+446
-16
lines changed

17 files changed

+446
-16
lines changed

.github/workflows/autofix.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
pull_request:
44
push:
55
branches: [ "main" ]
6+
paths:
7+
- "!scripts/**"
68

79
permissions:
810
contents: read

.github/workflows/changelogensets.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
pull-requests: write
10+
contents: write
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
14+
cancel-in-progress: ${{ github.event_name != 'push' }}
15+
16+
jobs:
17+
update-changelog:
18+
if: github.repository_owner == 'oku-ui'
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
with:
24+
fetch-depth: 0
25+
- run: corepack enable
26+
- uses: actions/setup-node@v3
27+
with:
28+
node-version: 20
29+
cache: "pnpm"
30+
31+
- name: Install dependencies
32+
run: pnpm install
33+
34+
- run: pnpm jiti ./scripts/update-changelog.ts
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/chromatic.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ on:
44
push:
55
branches:
66
- main
7+
paths:
8+
- "!scripts/**"
9+
710
# "You must append a colon (:) to all events, including events without configuration."
811
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-using-multiple-events-with-activity-types-or-configuration
912
pull_request:
1013
paths: # Only run if the frontend has changed
1114
- 'packages/components/**'
1215
- '.storybook/**'
1316
- 'package.json'
17+
- "!scripts/**"
1418

1519
permissions:
1620
contents: write

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ on:
1111
push:
1212
branches:
1313
- main
14+
paths:
15+
- "!scripts/**"
1416

1517
pull_request:
1618
branches:
1719
- main
20+
paths:
21+
- "!scripts/**"
1822

1923
jobs:
2024
build-test:

CHANGELOG.md

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# Changelog
2+
3+
4+
## ...main
5+
6+
7+
### 🚀 Enhancements
8+
9+
- Structure (#35)
10+
- Primitive (#39)
11+
- Use-callback-ref package (#41)
12+
- Label package (#42)
13+
- Aspect-ratio (#43)
14+
- Provide core package (#44)
15+
- Avatar (#46)
16+
- Playground vue3 (#47)
17+
- Playground nuxt3 (#48)
18+
- Packages core and components folder create (#51)
19+
- Storybook (#54)
20+
- **compose-refs:** New package (84620fe)
21+
- **use-previous:** New package (3636d75)
22+
- **use-size:** New package (5ff1387)
23+
- **OkuSeparator:** Create new component (#83)
24+
- Element type (#85)
25+
- Utils package (#86)
26+
- **checkbox:** New component (#87)
27+
- New struct storybook folder (#93)
28+
- Add OkuProgress component (#89)
29+
- Vue 3.3 support structural change (#96)
30+
- RefElement and primitive add new types (#99)
31+
- **toggle:** New component (#111)
32+
33+
### 🩹 Fixes
34+
35+
- Github folder name (95b04d4)
36+
- Optimize expose (#84)
37+
- **progress:** Stroybook and fix some progress bugs (#98)
38+
- Checkbox (#113)
39+
- **deps:** Update dependency @antfu/eslint-config to ^0.38.6 (#116)
40+
41+
### 💅 Refactors
42+
43+
- Vite build change to unbuild (#92)
44+
- **label:** Add merge props with @oku-ui/utils (#94)
45+
- Cleanup configs and package.json files (#100)
46+
- **core:** One package use-composable (#109)
47+
48+
### 🏡 Chora
49+
50+
- Update readme (1aafefe)
51+
- Update readme (49e98ef)
52+
- Fix github (a804142)
53+
- Add issuas link (8cdacbf)
54+
- Fix readme (fd1025e)
55+
- Fix readme (3d8963f)
56+
- Fix readme (819e7d0)
57+
- Drop the numbers (a0f8cea)
58+
- Fix drop published (ad63d38)
59+
- Fix toggle typo and add contributor (316e1d1)
60+
- Add thank you new message (3ddf1c6)
61+
- Add sponsors readme (#31)
62+
- Fix readme (1930d6e)
63+
- Update readme (024afed)
64+
- Update renovate (aff3ded)
65+
- Update renovate (d823836)
66+
- Update renovate (0a0bc81)
67+
- Update readme (026ba28)
68+
- Add chromatic (#56)
69+
- Storybook theme (#63)
70+
- Add more scripts and update contributing (#68)
71+
- Fix primitive ref (#71)
72+
- Fix aspect-ratio change ratio type to number and change the div element (#73)
73+
- Fix tsconfig (#74)
74+
- Fix ref expose (#76)
75+
- Feat use-controllable-ref package (#77)
76+
- Fix pnpmlock (4d18463)
77+
- Fix turbo build dependsOn (29db953)
78+
- Update package.json (d5ea788)
79+
- Update renovate (7829a2c)
80+
- Change struct label storybook demo vue (#90)
81+
- Auto import component nuxt playground (#91)
82+
- Add label test (#95)
83+
- Fix build (4ab9372)
84+
- Refactor unbuild settings (#97)
85+
- Update readme (3312737)
86+
- **separator:** Add test (#102)
87+
- Fix dev mode (78eecfa)
88+
- Update README (#112)
89+
- Pnpm overrides (590c6c0)
90+
91+
### ❤️ Contributors
92+
93+
- Productdevbook <[email protected]>
94+
- Faithful Ojebiyi ([@faithfulojebiyi](http://github.com/faithfulojebiyi))
95+
96+
- Suxiong
97+
- Victor Akintunde
98+
- Sadegh Barati ([@sadeghbarati](http://github.com/sadeghbarati))
99+
- Fatih Yıldız
100+

changelog.config.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import type { ChangelogConfig } from 'changelogen'
2+
3+
function getDefaultConfig() {
4+
return <Partial<ChangelogConfig>>{
5+
types: {
6+
version: { title: '🔖 Version', semver: 'patch' },
7+
feat: { title: '🚀 Enhancements', semver: 'minor' },
8+
perf: { title: '🔥 Performance', semver: 'patch' },
9+
fix: { title: '🩹 Fixes', semver: 'patch' },
10+
refactor: { title: '💅 Refactors', semver: 'patch' },
11+
docs: { title: '📖 Documentation', semver: 'patch' },
12+
build: { title: '📦 Build', semver: 'patch' },
13+
types: { title: '🌊 Types', semver: 'patch' },
14+
chore: { title: '🏡 Chore' },
15+
examples: { title: '🏀 Examples' },
16+
test: { title: '✅ Tests' },
17+
style: { title: '🎨 Styles' },
18+
ci: { title: '🤖 CI' },
19+
},
20+
repo: {
21+
repo: 'oku-ui/primitives',
22+
provider: 'github',
23+
domain: 'github.com',
24+
token: process.env.GITHUB_TOKEN,
25+
},
26+
}
27+
}
28+
29+
export default getDefaultConfig

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2-
"name": "oku-ui",
2+
"name": "primitives",
33
"type": "module",
4-
"private": true,
4+
"version": "0.0.0",
55
"packageManager": "[email protected]",
6+
"repository": "oku-ui/primitives",
67
"scripts": {
78
"p:build": "tsup",
89
"build": "turbo run build --filter='./packages/**'",
@@ -45,11 +46,14 @@
4546
"@vitejs/plugin-vue": "^4.2.2",
4647
"@vitest/coverage-c8": "^0.31.0",
4748
"@vue/test-utils": "^2.3.2",
49+
"changelogen": "^0.5.3",
4850
"chromatic": "^6.17.4",
4951
"eslint": "8.39.0",
5052
"eslint-config-custom": "workspace:*",
5153
"eslint-plugin-storybook": "^0.6.12",
54+
"jiti": "^1.18.2",
5255
"jsdom": "^22.0.0",
56+
"ofetch": "^1.0.1",
5357
"react": "^18.2.0",
5458
"react-dom": "^18.2.0",
5559
"rimraf": "^5.0.0",

packages/components/aspect-ratio/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@oku-ui/aspect-ratio",
33
"type": "module",
4-
"version": "1.0.0",
4+
"version": "0.0.0",
55
"license": "MIT",
66
"source": "src/index.ts",
77
"funding": "https://github.com/sponsors/productdevbook",

packages/components/checkbox/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@oku-ui/checkbox",
33
"type": "module",
4-
"version": "1.0.0",
4+
"version": "0.0.0",
55
"license": "MIT",
66
"source": "src/index.ts",
77
"funding": "https://github.com/sponsors/productdevbook",

packages/components/progress/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@oku-ui/progress",
33
"type": "module",
4-
"version": "1.0.0",
4+
"version": "0.0.0",
55
"license": "MIT",
66
"source": "src/index.ts",
77
"funding": "https://github.com/sponsors/productdevbook",

0 commit comments

Comments
 (0)