diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 986d168..a64b216 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,6 +51,16 @@ jobs: with: version: 0.31.2 - uses: actions/checkout@v3 + - name: cache node_modules build + uses: actions/cache@v3 + with: + key: test-ubuntu + path: | + ./pnpm + ./.pnpm-store + ./node_modules + ./modules/desktop/node_modules + ./modules/ui/node_modules - name: env file run: cp modules/desktop/.env.example modules/desktop/.env - name: install app dependencies @@ -76,6 +86,16 @@ jobs: with: version: 0.31.2 - uses: actions/checkout@v3 + - name: cache node_modules build + uses: actions/cache@v3 + with: + key: e2e-macos + path: | + ./pnpm + ./.pnpm-store + ./node_modules + ./modules/desktop/node_modules + ./modules/ui/node_modules - name: env file run: cp modules/desktop/.env.example modules/desktop/.env - name: install app dependencies @@ -97,10 +117,6 @@ jobs: version: 0.31.2 - uses: actions/checkout@v3 - name: cache node_modules build - # TODO: cache issue in our self-hosted macos runner ESPIPE: invalid seek, read - # but its ok to ignore, its still the fastest builder - # NOTE: enabling cache in the self hosted runner slows down the pipeline by 4m because post-cache builder error ^ - if: startsWith(inputs.platform, 'linux') || matrix.platform.name == 'darwin+x86-64' uses: actions/cache@v3 with: key: ubuntu-latest-pnpm diff --git a/modules/desktop/package.json b/modules/desktop/package.json index 218425d..9b4a77a 100644 --- a/modules/desktop/package.json +++ b/modules/desktop/package.json @@ -1,6 +1,6 @@ { "name": "tea", - "version": "0.2.16", + "version": "0.2.17", "private": true, "description": "tea gui app", "author": "tea.xyz", diff --git a/modules/desktop/src/libs/stores/pkgs.ts b/modules/desktop/src/libs/stores/pkgs.ts index fdaf894..a6da9ad 100644 --- a/modules/desktop/src/libs/stores/pkgs.ts +++ b/modules/desktop/src/libs/stores/pkgs.ts @@ -217,6 +217,9 @@ const installPkg = async (pkg: GUIPackage, version?: string) => { updatePackage(pkg.full_name, { install_progress_percentage: 0.01 }); await installPackage(pkg, versionToInstall); trackInstall(pkg.full_name); + + await refreshPackages(); // helps e2e tests might not be the most efficient but helps + notificationStore.add({ message: `Package ${pkg.full_name} v${versionToInstall} has been installed.` }); diff --git a/modules/ui/src/markdown/styles.css b/modules/ui/src/markdown/styles.css index ee22974..6714f8d 100644 --- a/modules/ui/src/markdown/styles.css +++ b/modules/ui/src/markdown/styles.css @@ -9,6 +9,11 @@ font-size: 16px; line-height: 1.5; word-wrap: break-word; + user-select: text; + -webkit-user-select: text; + -moz-user-select: text; + -ms-user-select: text; + cursor: text; } .markdown-body .octicon {