Skip to content

Commit 56ae69b

Browse files
committed
Update build workflows and packages
1 parent ed36189 commit 56ae69b

File tree

9 files changed

+3777
-4661
lines changed

9 files changed

+3777
-4661
lines changed

.github/workflows/build-cli.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
paths:
77
- "npm-packages/cli/**"
88
- ".github/workflows/build-cli.yml"
9+
10+
permissions:
11+
contents: read
912

1013
jobs:
1114
build:

.github/workflows/build-desktop.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
- "desktop/**"
88
- "web/**"
99
- ".github/workflows/build-desktop.yml"
10+
11+
permissions:
12+
contents: read
13+
1014
jobs:
1115
build:
1216
strategy:
@@ -23,6 +27,18 @@ jobs:
2327
with:
2428
node-version: 20
2529

30+
- name: Install shared-utils dependencies
31+
run: npm install --workspace=npm-packages/shared-utils
32+
33+
- name: Build shared-utils
34+
run: npm run shared-utils-build
35+
36+
- name: Install capacitor-plugin dependencies
37+
run: npm install --workspace=capacitor-plugin
38+
39+
- name: Build capacitor-plugin
40+
run: npm run build --workspace=capacitor-plugin
41+
2642
- name: Install web dependencies
2743
run: npm install --workspace=web
2844

.github/workflows/build-mobile.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
- "android/**"
1212
- ".github/workflows/build-mobile.yml"
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
build:
1619
strategy:
@@ -39,13 +42,25 @@ jobs:
3942
- name: Get Keystore
4043
run: |
4144
mkdir .keystore
42-
echo ${{ secrets.ANDROID_KEYSTORE }} | base64 --decode > android/.keystore/keystore.jks
45+
echo ${{ secrets.ANDROID_KEYSTORE }} | base64 --decode > .keystore/keystore.jks
4346
4447
- name: Setup Node.js
4548
uses: actions/setup-node@v4
4649
with:
4750
node-version: 20
4851

52+
- name: Install shared-utils dependencies
53+
run: npm install --workspace=npm-packages/shared-utils
54+
55+
- name: Build shared-utils
56+
run: npm run shared-utils-build
57+
58+
- name: Install capacitor-plugin dependencies
59+
run: npm install --workspace=capacitor-plugin
60+
61+
- name: Build capacitor-plugin
62+
run: npm run build --workspace=capacitor-plugin
63+
4964
- name: Install web dependencies
5065
run: npm install --workspace=web
5166

@@ -56,7 +71,7 @@ jobs:
5671
run: npm run build
5772

5873
- name: Change Android Project Permission
59-
run: chmod +x android/gradlew
74+
run: chmod +x mobile/android/gradlew
6075

6176
- name: Sync Capacitor App
6277
run: npx cap sync

.github/workflows/build-npm-packages.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
name: Build NPM Packages
44

5-
permissions:
6-
contents: write
7-
85
on:
96
pull_request:
107
branches: ["main"]
@@ -13,6 +10,9 @@ on:
1310
- "npm-packages/react-api/**"
1411
- ".github/workflows/build-desktop.yml"
1512

13+
permissions:
14+
contents: read
15+
1616
jobs:
1717
build:
1818
runs-on: ubuntu-latest

.github/workflows/build-web.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,33 @@ on:
77
- "web/**"
88
- ".github/workflows/build-web.yml"
99

10+
permissions:
11+
contents: write
12+
1013
jobs:
1114
build:
1215
runs-on: ubuntu-latest
1316
steps:
1417
- name: Checkout
1518
uses: actions/checkout@v4
1619

17-
# echo node version to the log
18-
- name: Echo Node.js version
19-
run: node --version
20-
2120
- name: Setup Node.js
2221
uses: actions/setup-node@v4
2322
with:
2423
node-version: 20
24+
25+
- name: Install shared-utils dependencies
26+
run: npm install --workspace=npm-packages/shared-utils
27+
28+
- name: Build shared-utils
29+
run: npm run shared-utils-build
2530

26-
# echo node version to the log
27-
- name: Echo npm version
28-
run: npm --version
31+
- name: Install capacitor-plugin dependencies
32+
run: npm install --workspace=capacitor-plugin
2933

34+
- name: Build capacitor-plugin
35+
run: npm run build --workspace=capacitor-plugin
36+
3037
- name: Install web dependencies
3138
run: npm install --workspace=web
3239

capacitor-plugin/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"rimraf": "^6.0.1",
6161
"rollup": "^4.30.1",
6262
"swiftlint": "^2.0.0",
63-
"typescript": "~4.1.5"
63+
"typescript": "^5.8.3"
6464
},
6565
"peerDependencies": {
6666
"@capacitor/core": ">=7.0.0"
@@ -78,4 +78,4 @@
7878
"src": "android"
7979
}
8080
}
81-
}
81+
}

0 commit comments

Comments
 (0)