Skip to content

Commit 544ac6a

Browse files
committed
feat!: complete rewrite
1 parent 8f0247d commit 544ac6a

File tree

189 files changed

+6127
-8552
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+6127
-8552
lines changed

.github/README.md

Lines changed: 0 additions & 108 deletions
This file was deleted.

.github/actions/setup/action.yaml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/ci.yaml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,21 @@ on:
55
branches:
66
- main
77
paths-ignore:
8-
- "docs/**"
9-
- "assets/**"
8+
- "examples/**"
109
- "README.md"
11-
- ".github/README.md"
1210
pull_request:
1311
branches:
1412
- "**"
1513
paths-ignore:
16-
- "docs/**"
17-
- "assets/**"
14+
- "examples/**"
1815
- "README.md"
19-
- ".github/README.md"
2016

2117
concurrency:
2218
group: ${{ github.workflow }}-${{ github.ref }}
2319
cancel-in-progress: true
2420

2521
jobs:
26-
build:
27-
permissions:
28-
contents: write
29-
22+
ci:
3023
runs-on: ubuntu-latest
3124
timeout-minutes: 15
3225

@@ -36,8 +29,19 @@ jobs:
3629
with:
3730
fetch-depth: 0
3831

39-
- name: Setup Repository
40-
uses: ./.github/actions/setup
32+
- name: Setup Bun
33+
uses: oven-sh/setup-bun@v2
34+
with:
35+
bun-version: latest
36+
37+
- name: Install Dependencies
38+
run: bun install --frozen-lockfile
39+
40+
- name: Format Check
41+
run: bun turbo format:check
42+
43+
- name: Type Check
44+
run: bun turbo type:check
4145

42-
- name: Build
43-
run: pnpm turbo build
46+
- name: Type Check (Package)
47+
run: bun turbo type:check:package
Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish
1+
name: Release
22

33
on:
44
workflow_dispatch:
@@ -11,6 +11,7 @@ on:
1111
- patch
1212
- minor
1313
- major
14+
default: patch
1415

1516
concurrency:
1617
group: ${{ github.workflow }}-${{ github.ref }}
@@ -20,6 +21,7 @@ jobs:
2021
publish:
2122
permissions:
2223
contents: write
24+
id-token: write
2325

2426
runs-on: ubuntu-latest
2527
timeout-minutes: 15
@@ -30,8 +32,13 @@ jobs:
3032
with:
3133
fetch-depth: 0
3234

33-
- name: Setup Repository
34-
uses: ./.github/actions/setup
35+
- name: Setup Bun
36+
uses: oven-sh/setup-bun@v2
37+
with:
38+
bun-version: latest
39+
40+
- name: Install Dependencies
41+
run: bun install --frozen-lockfile
3542

3643
- name: Set Git User
3744
run: |
@@ -43,8 +50,20 @@ jobs:
4350
env:
4451
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4552

46-
- name: Build & Publish
47-
run: pnpm release ${{ github.event.inputs.bump }}
53+
- name: Bump Version
54+
run: |
55+
npm verison ${{ github.event.inputs.bump }} -m "chore: bump version"
56+
57+
- name: Build
58+
run: bun turbo build
59+
60+
- name: Publish
61+
run: npm publish --provenance --access public
62+
63+
- name: Commit
64+
run: git push --follow-tags
65+
66+
- name: Release Notes
67+
run: bunx changelogithub
4868
env:
4969
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1+
# cache
12
.turbo
3+
4+
# dependencies
25
node_modules
6+
7+
# output
38
dist
4-
.env
59

6-
# secrets
7-
.npmrc
10+
# endpoints (auto-generated)
11+
src/clients/*/endpoints
812

9-
# auto generated
10-
src/clients/auth-api/endpoints
11-
src/clients/local-api/endpoints
12-
src/clients/remote-api/endpoints
13+
# env
14+
*.env
15+
.env

.npmignore

Lines changed: 0 additions & 12 deletions
This file was deleted.

.prettierignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.prettierrc.cjs

Lines changed: 0 additions & 6 deletions
This file was deleted.

.prettierrc.mjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/** @type {import("prettier").Config} */
2+
export default {
3+
plugins: ["@ianvs/prettier-plugin-sort-imports"],
4+
importOrderParserPlugins: ["typescript", "decorators-legacy"],
5+
importOrder: [
6+
"<BUILTIN_MODULES>",
7+
"",
8+
"<THIRD_PARTY_MODULES>",
9+
"",
10+
"^~/(.*)$",
11+
"",
12+
"^[./]",
13+
],
14+
};

.release-it.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)