fix: pnpm executable not found
parent
c08a8d0d71
commit
f044c7997d
|
@ -24,6 +24,9 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.7
|
uses: actions/checkout@v4.1.7
|
||||||
|
|
||||||
|
- name: Setup pnpm
|
||||||
|
uses: pnpm/action-setup@v4
|
||||||
|
|
||||||
- name: 'Setup Node.js "${{ matrix.node }}.x" environment'
|
- name: 'Setup Node.js "${{ matrix.node }}.x" environment'
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
|
@ -31,9 +34,6 @@ jobs:
|
||||||
registry-url: https://npm.pkg.github.com/
|
registry-url: https://npm.pkg.github.com/
|
||||||
cache: pnpm
|
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
|
- name: Setup Python environment (Mac) Because of electron-builder install-app-deps requires Python setup tools
|
||||||
if: matrix.os == 'macos'
|
if: matrix.os == 'macos'
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
|
|
|
@ -23,14 +23,15 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.7
|
uses: actions/checkout@v4.1.7
|
||||||
|
|
||||||
|
- name: Setup pnpm
|
||||||
|
uses: pnpm/action-setup@v4
|
||||||
|
|
||||||
- name: 'Setup Node.js "${{ matrix.node }}.x" environment'
|
- name: 'Setup Node.js "${{ matrix.node }}.x" environment'
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
registry-url: https://npm.pkg.github.com/
|
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
|
- name: Setup Python environment (Mac) Because of electron-builder install-app-deps requires Python setup tools
|
||||||
if: matrix.os == 'macos'
|
if: matrix.os == 'macos'
|
||||||
|
@ -68,6 +69,22 @@ jobs:
|
||||||
echo "--------------------";
|
echo "--------------------";
|
||||||
python --version;
|
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
|
- name: pnpm install
|
||||||
run: |
|
run: |
|
||||||
echo "======================================================================";
|
echo "======================================================================";
|
||||||
|
@ -78,7 +95,7 @@ jobs:
|
||||||
echo "--------------------";
|
echo "--------------------";
|
||||||
pnpm install;
|
pnpm install;
|
||||||
|
|
||||||
- name: 'npm run electron'
|
- name: npm run electron
|
||||||
run: |
|
run: |
|
||||||
echo "======================================================================";
|
echo "======================================================================";
|
||||||
echo "cd packages/gui";
|
echo "cd packages/gui";
|
||||||
|
|
|
@ -27,6 +27,9 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.7
|
uses: actions/checkout@v4.1.7
|
||||||
|
|
||||||
|
- name: Setup pnpm
|
||||||
|
uses: pnpm/action-setup@v4
|
||||||
|
|
||||||
- name: 'Setup Node.js "${{ matrix.node }}.x" environment'
|
- name: 'Setup Node.js "${{ matrix.node }}.x" environment'
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
|
@ -34,9 +37,6 @@ jobs:
|
||||||
registry-url: https://npm.pkg.github.com/
|
registry-url: https://npm.pkg.github.com/
|
||||||
cache: pnpm
|
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
|
- name: Setup Python environment (Mac) Because of electron-builder install-app-deps requires Python setup tools
|
||||||
if: matrix.os == 'macos'
|
if: matrix.os == 'macos'
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
|
|
Loading…
Reference in New Issue