8000 Lerna Monorepo (#779) Β· sdkgen/sdkgen@9153e5c Β· GitHub 8000
[go: up one dir, main page]

Skip to content

Commit 9153e5c

Browse files
authored
Lerna Monorepo (#779)
* feat: lerna monorepo * feat: single tsconfig * fix: use nx false * fix: update typescript * fix: tests * feat: provenance * fix: permissions on provenance * feat: add sherif for monorepo linting * feat: adjust github workflows * feat: publish dotnet package * fix: packages ref * fix: version.txt path * feat: add android package * fix: gradlew path * fix: paths * fix: missing gradle config * fix: paths * fix: android package release * feat: dart package * chore: remove lerna config, centralize workflows
1 parent 9f7fc81 commit 9153e5c

File tree

291 files changed

+22235
-2107
lines changed

Some content is hidden

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

291 files changed

+22235
-2107
lines changed

β€Ž.eslintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": ["@cubos"],
3+
"parserOptions": {
4+
"project": "../../tsconfig.spec.json"
5+
}
6+
}

β€Ž.github/workflows/docs_dev.yml

Lines changed: 35 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,44 @@ jobs:
77
docs:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v4
11-
- uses: actions/setup-python@v4
10+
- name: Checkout πŸ›ŽοΈ
11+
uses: actions/checkout@v4
12+
13+
- name: Setup Node.js πŸ“¦
14+
uses: actions/setup-node@v4
1215
with:
13-
python-version: "3.x"
14-
- uses: actions/setup-node@v3
15-
with:
16-
node-version: 20.x
16+
node-version: 20
1717
registry-url: https://registry.npmjs.org
18-
- run: pip install mkdocs-material
19-
- run: sed -i -e "s/sdkgen.github.io/sdkgen.github.io\/dev/g" mkdocs.yml
20-
- run: mkdocs build
21-
- run: git clone --depth 1 -b main https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/sdkgen/sdkgen.github.io.git
22-
- run: rm -rf sdkgen.github.io/dev
23-
- run: mv site sdkgen.github.io/dev
24-
- run: |
25-
cd playground
26-
npm install
27-
npm install -g json
28-
bash .ci.sh
29-
json -I -f package.json -e '
30-
this.version = "0.0.0-dev";
31-
delete this.dependencies.tslib;
32-
for (const pkg in this.dependencies)
33-
if (this.dependencies[pkg].startsWith("file:../"))
34-
this.dependencies[pkg] = this.version;
35-
'
18+
19+
- name: Setup Python 🐍
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: "3.x"
23+
24+
- name: Install dependencies πŸ”§
25+
run: |
26+
npm ci --include=dev
27+
28+
- name: Build docs 🚚
29+
run: |
30+
pip install mkdocs-material
31+
sed -i -e "s/sdkgen.github.io/sdkgen.github.io\/dev/g" mkdocs.yml
32+
mkdocs build
33+
34+
- name: Build playground 🌎
35+
run: |
3636
npm run build
37-
sed -i -E 's_(<base href=")/(">)_\1/dev/playground/\2_' dist/index.html
38-
mv dist/ ../sdkgen.github.io/dev/playground/
39-
- run: |
37+
sed -i -E 's_(<base href=")/(">)_\1/dev/playground/\2_' packages/playground/dist/index.html
38+
39+
- name: Prepare deploy πŸ“¦
40+
run: |
41+
git clone --depth 1 -b main https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/sdkgen/sdkgen.github.io.git
42+
rm -rf sdkgen.github.io/dev
43+
mv site sdkgen.github.io/dev
44+
mv packages/playground/dist/ sdkgen.github.io/dev/playground/
45+
46+
- name: Deploy πŸš€
47+
run: |
4048
cd sdkgen.github.io
4149
git config --global user.name "$GITHUB_ACTOR"
4250
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"

β€Ž.github/workflows/docs_release.yml

Lines changed: 35 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,44 @@ jobs:
66
docs:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v4
10-
- uses: actions/setup-python@v4
9+
- name: Checkout πŸ›ŽοΈ
10+
uses: actions/checkout@v4
11+
12+
- name: Setup Node.js πŸ“¦
13+
uses: actions/setup-node@v4
1114
with:
12-
python-version: "3.x"
13-
- uses: actions/setup-node@v3
14-
with:
15-
node-version: 20.x
15+
node-version: 20
1616
registry-url: https://registry.npmjs.org
17-
- run: pip install mkdocs-material
18-
- run: mkdocs build
19-
- run: git clone --depth 1 -b main https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/sdkgen/sdkgen.github.io.git
20-
- run: mkdir -p sdkgen.github.io/pr
21-
- run: cd sdkgen.github.io && rm -rf $(ls | grep -vE "^(pr|dev)$")
22-
- run: mv site/* sdkgen.github.io/
23-
- run: |
24-
cd playground
25-
npm install
26-
npm install -g json
27-
bash .ci.sh
28-
json -I -f package.json -e '
29-
this.version = "${{ github.ref }}".replace("refs/tags/", "");
30-
delete this.dependencies.tslib;
31-
for (const pkg in this.dependencies)
32-
if (this.dependencies[pkg].startsWith("file:../"))
33-
this.dependencies[pkg] = this.version;
34-
'
17+
18+
- name: Setup Python 🐍
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: "3.x"
22+
23+
- name: Install dependencies πŸ”§
24+
run: |
25+
npm ci --include=dev
26+
27+
- name: Build docs 🚚
28+
run: |
29+
pip install mkdocs-material
30+
mkdocs build
31+
32+
- name: Build playground 🌎
33+
run: |
3534
npm run build
36-
sed -i -E 's_(<base href=")/(">)_\1/playground/\2_' dist/index.html
37-
mv dist/ ../sdkgen.github.io/playground/
38-
- run: |
35+
sed -i -E 's_(<base href=")/(">)_\1/playground/\2_' packages/playground/dist/index.html
36+
37+
- name: Prepare deploy πŸ“¦
38+
run: |
39+
git clone --depth 1 -b main https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/sdkgen/sdkgen.github.io.git
40+
mkdir -p sdkgen.github.io/pr
41+
cd sdkgen.github.io && rm -rf $(ls | grep -vE "^(pr|dev)$") && cd ..
42+
mv site/* sdkgen.github.io/
43+
mv packages/playground/dist/ sdkgen.github.io/playground/
44+
45+
- name: Deploy πŸš€
46+
run: |
3947
cd sdkgen.github.io
4048
git config --global user.name "$GITHUB_ACTOR"
4149
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"

0 commit comments

Comments
Β (0)
0