tauri-apps / tauri-action

Build your Web application as a Tauri binary for macOS, Linux and Windows
https://tauri.app
MIT License
897 stars 147 forks source link

Yarn isn't detected with workspace setup #161

Open lights0123 opened 3 years ago

lights0123 commented 3 years ago

If a Tauri app is present in one package within a Yarn workspace, the check for yarn.lock fails because it's in the root directory of the workspace, not the package.

https://github.com/tauri-apps/tauri-action/blob/f564b01e52fbf240e5e5c12577dd10625fe83580/packages/core/index.ts#L28

Norbiros commented 1 month ago

The same problem happens with pnpm. Because of it it used npm to install tauri cli, which downloaded v1 even for projects using v2. I was able to fix it using tauriScript: pnpm --filter=@modrinth/app run tauri https://github.com/tauri-apps/tauri-action/blob/3b72cab93fb2fbac61fc5b91cbede2fee647dd82/src/runner.ts#L62