Fix plugin patch to run before node module install

This commit is contained in:
WardPearce
2024-09-20 21:28:31 +12:00
parent 5da6e5b517
commit 3815575d32
2 changed files with 3 additions and 6 deletions
+3 -3
View File
@@ -48,12 +48,12 @@ jobs:
- name: Sync electron package
run: cd ./materialious && npx cap sync @capacitor-community/electron
- name: Install electron modules
run: cd ./materialious/electron && npm install
- name: Patch capacitor plugin
run: cd ./materialious/electron && python patch_capacitor_plugin.py
- name: Install electron modules
run: cd ./materialious/electron && npm install
- name: Set up environment variables
run: echo "GH_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
shell: bash
@@ -3,7 +3,6 @@
import json
import os
import subprocess
WORKING_DIR = os.path.dirname(os.path.realpath(__file__))
@@ -33,8 +32,6 @@ def run():
with open(PACKAGE_JSON, "w") as f_:
f_.write(json.dumps(package, indent="\t"))
subprocess.call(["npm", "install"])
if __name__ == "__main__":
run()