Skip to content

Commit 198fddc

Browse files
committed
Remove capacitor plugin from CI/CD
1 parent 65bbca9 commit 198fddc

File tree

11 files changed

+6
-39
lines changed

11 files changed

+6
-39
lines changed

.changeset/pre.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"mode": "pre",
33
"tag": "beta",
44
"initialVersions": {
5-
"@pulse-editor/capacitor-plugin": "0.0.1",
65
"@pulse-editor/mobile": "0.0.1",
76
"@pulse-editor/react-api": "0.1.1-alpha.54",
87
"@pulse-editor/shared-utils": "0.1.1-alpha.54",

.github/workflows/build-desktop.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,7 @@ jobs:
3232

3333
- name: Build shared-utils
3434
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 capacitor-plugin-build
41-
35+
4236
- name: Install web dependencies
4337
run: npm install --workspace=web
4438

.github/workflows/build-mobile.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ jobs:
5555
- name: Build shared-utils
5656
run: npm run shared-utils-build
5757

58-
- name: Install capacitor-plugin dependencies
59-
run: npm install --workspace=capacitor-plugin
60-
61-
- name: Build capacitor-plugin
62-
run: npm run capacitor-plugin-build
63-
6458
- name: Install web dependencies
6559
run: npm install --workspace=web
6660

.github/workflows/build-web.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ jobs:
2828

2929
- name: Build shared-utils
3030
run: npm run shared-utils-build
31-
32-
- name: Install capacitor-plugin dependencies
33-
run: npm install --workspace=capacitor-plugin
34-
35-
- name: Build capacitor-plugin
36-
run: npm run capacitor-plugin-build
3731

3832
- name: Install web dependencies
3933
run: npm install --workspace=web

.github/workflows/release-desktop.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ jobs:
3030
- name: Build shared-utils
3131
run: npm run shared-utils-build
3232

33-
- name: Install capacitor-plugin dependencies
34-
run: npm install --workspace=capacitor-plugin
35-
36-
- name: Build capacitor-plugin
37-
run: npm run capacitor-plugin-build
38-
3933
- name: Install web dependencies
4034
run: npm install --workspace=web
4135

.github/workflows/release-mobile.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@ jobs:
5252
- name: Build shared-utils
5353
run: npm run shared-utils-build
5454

55-
- name: Install capacitor-plugin dependencies
56-
run: npm install --workspace=capacitor-plugin
57-
58-
- name: Build capacitor-plugin
59-
run: npm run capacitor-plugin-build
60-
6155
- name: Install web dependencies
6256
run: npm install --workspace=web
6357

package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"workspaces": [
66
"web",
77
"mobile",
8-
"capacitor-plugin",
98
"vscode-extension",
109
"npm-packages/react-api",
1110
"npm-packages/shared-utils"
@@ -21,8 +20,7 @@
2120
"react-api-build": "npm run build --workspace=npm-packages/react-api",
2221
"shared-utils-build": "npm run build --workspace=npm-packages/shared-utils",
2322
"cli-dev": "npm run dev --workspace=cli",
24-
"cli-build": "npm run build --workspace=cli",
25-
"capacitor-plugin-build": "npm run build --workspace=capacitor-plugin"
23+
"cli-build": "npm run build --workspace=cli"
2624
},
2725
"devDependencies": {
2826
"@changesets/cli": "^2.29.4",

web/components/providers/capacitor-provider.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ export default function CapacitorProvider({
5555
if (token) {
5656
// Set token in cookie
5757
CapacitorCookies.setCookie({
58-
url: "https://192.168.2.103:3000", // must match your WebView origin
58+
// must match your WebView origin
59+
url: window.location.origin,
5960
key: "pulse-editor.session-token",
6061
value: token,
6162
path: "/",

web/lib/hooks/use-auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export function useAuth() {
120120
await Browser.open({ url: url.toString() });
121121

122122
await CapacitorCookies.deleteCookie({
123-
url: "https://192.168.2.103:3000",
123+
url: window.location.origin,
124124
key: "pulse-editor.session-token",
125125
});
126126
} else {

0 commit comments

Comments
 (0)