Fix plugin patch to run before node module install
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user