Skip to content

Commit

Permalink
fix: pnpm executable not found
Browse files Browse the repository at this point in the history
  • Loading branch information
starknt committed Nov 22, 2024
1 parent c08a8d0 commit f044c79
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ jobs:
- name: Checkout
uses: actions/[email protected]

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: 'Setup Node.js "${{ matrix.node }}.x" environment'
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
registry-url: https://npm.pkg.github.com/
cache: pnpm

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Python environment (Mac) Because of electron-builder install-app-deps requires Python setup tools
if: matrix.os == 'macos'
uses: actions/setup-python@v5
Expand Down
25 changes: 21 additions & 4 deletions .github/workflows/npm-run-electron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ jobs:
- name: Checkout
uses: actions/[email protected]

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: 'Setup Node.js "${{ matrix.node }}.x" environment'
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
registry-url: https://npm.pkg.github.com/

- name: Setup pnpm
uses: pnpm/action-setup@v4
cache: pnpm

- name: Setup Python environment (Mac) Because of electron-builder install-app-deps requires Python setup tools
if: matrix.os == 'macos'
Expand Down Expand Up @@ -68,6 +69,22 @@ jobs:
echo "--------------------";
python --version;
- name: Setup electron cahce
uses: actions/cache@v4
with:
path: ${{ env.HOME }}/.cache/electron
key: ${{ runner.os }}-electron-cache-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-electron-cache-
- name: Setup electron-builder cahce
uses: actions/cache@v4
with:
path: ${{ env.HOME }}/.cache/electron-builder
key: ${{ runner.os }}-electron-builder-cache-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-electron-builder-cache-
- name: pnpm install
run: |
echo "======================================================================";
Expand All @@ -78,7 +95,7 @@ jobs:
echo "--------------------";
pnpm install;
- name: 'npm run electron'
- name: npm run electron
run: |
echo "======================================================================";
echo "cd packages/gui";
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-and-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ jobs:
- name: Checkout
uses: actions/[email protected]

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: 'Setup Node.js "${{ matrix.node }}.x" environment'
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
registry-url: https://npm.pkg.github.com/
cache: pnpm

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Python environment (Mac) Because of electron-builder install-app-deps requires Python setup tools
if: matrix.os == 'macos'
uses: actions/setup-python@v5
Expand Down

0 comments on commit f044c79

Please sign in to comment.