Skip to content

Commit c72a0b1

Browse files
committed
chore: use monorepo
1 parent c629182 commit c72a0b1

File tree

129 files changed

+5345
-13330
lines changed

Some content is hidden

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

129 files changed

+5345
-13330
lines changed

.github/workflows/docs.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,19 @@ jobs:
1717
url: ${{ steps.deployment.outputs.page_url }}
1818
steps:
1919
- uses: actions/checkout@v4
20+
- uses: pnpm/action-setup@v4
2021
with:
21-
fetch-depth: 0
22-
- name: Setup node
23-
uses: actions/setup-node@v4
22+
run_install: false
23+
- uses: actions/setup-node@v4
2424
with:
25-
node-version: 20
25+
node-version-file: '.node-version'
2626
check-latest: true
27-
- run: npm install
28-
- run: npm install
29-
working-directory: docs
30-
- run: npm run build
27+
cache: 'pnpm'
28+
- run: pnpm install
29+
- run: pnpm run build
3130
working-directory: docs
3231
- uses: actions/upload-pages-artifact@v3
3332
with:
34-
path: docs/out
33+
path: packages/docs/out
3534
- uses: actions/deploy-pages@v4
3635
id: deployment

.github/workflows/publish.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,32 +22,29 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v4
2424
- uses: pnpm/action-setup@v4
25-
name: Install pnpm
2625
with:
2726
run_install: false
2827
- name: Setup node
2928
uses: actions/setup-node@v4
3029
with:
31-
node-version: 20
30+
node-version-file: '.node-version'
3231
check-latest: true
3332
cache: 'pnpm'
3433
registry-url: 'https://registry.npmjs.org'
35-
- name: Install dependencies
36-
run: pnpm install
37-
- name: Build
38-
run: pnpm run build
34+
- run: pnpm install
35+
- run: pnpm run build
3936
- name: Publish
4037
run: |
4138
if git log -1 --pretty=%B | grep "^release: [0-9]\+\.[0-9]\+\.[0-9]\+$";
4239
then
43-
cd dist
40+
cd packages/foxact/dist
4441
npm publish --provenance --access public
45-
cd ..
42+
cd ../../..
4643
elif git log -1 --pretty=%B | grep "^release: [0-9]\+\.[0-9]\+\.[0-9]\+";
4744
then
48-
cd dist
45+
cd packages/foxact/dist
4946
npm publish --tag next --provenance --access public
50-
cd ..
47+
cd ../../..
5148
else
5249
echo "Not a release, skipping publish"
5350
fi

.gitignore

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ yarn.lock
1111
/coverage
1212

1313
# next.js
14-
/docs/.next/
15-
/docs/out/
14+
.next/
15+
out/
1616
next-env.d.ts
1717

1818
# production
1919
/build
20-
/dist
20+
dist
2121

2222
# misc
2323
.DS_Store
@@ -38,3 +38,8 @@ yarn-error.log*
3838
# typescript
3939
*.tsbuildinfo
4040

41+
# turborepo
42+
.turbo
43+
44+
# misc
45+
.DS_Store

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

0 commit comments

Comments
 (0)