diff --git a/.github/workflows/pull-android.yml b/.github/workflows/pull-android.yml index 63dbd5ba..527e127b 100644 --- a/.github/workflows/pull-android.yml +++ b/.github/workflows/pull-android.yml @@ -22,13 +22,13 @@ jobs: node-version: latest - name: Install modules - run: cd ../ && npm install + run: cd ../ && npm ci - name: Build android nodejs packages - run: cd ../static/nodejsAndroid && npm install + run: cd ../static/nodejsAndroid && npm ci - name: Build package - run: cd ../ && npm run build + run: cd ../ && npm run build && npm prune --omit=dev - name: Sync package run: cd ../ && npx cap sync diff --git a/.github/workflows/pull-desktop.yml b/.github/workflows/pull-desktop.yml index 6b2dfd7a..d37feac4 100644 --- a/.github/workflows/pull-desktop.yml +++ b/.github/workflows/pull-desktop.yml @@ -32,10 +32,10 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install modules - run: cd ./materialious && npm install + run: cd ./materialious && npm ci - name: Build package - run: cd ./materialious && npm run build + run: cd ./materialious && npm run build && npm prune --omit=dev - name: Sync electron package run: cd ./materialious && npx cap sync @capacitor-community/electron @@ -44,7 +44,7 @@ jobs: run: cd ./materialious/electron && python patch_capacitor_plugin.py - name: Install electron modules - run: cd ./materialious/electron && npm install + run: cd ./materialious/electron && npm ci - name: Build desktop packages run: cd ./materialious/electron && npm run electron:make-no-publish diff --git a/.github/workflows/pull-web.yml b/.github/workflows/pull-web.yml index c9687972..295f6e8a 100644 --- a/.github/workflows/pull-web.yml +++ b/.github/workflows/pull-web.yml @@ -17,10 +17,10 @@ jobs: with: node-version: latest - name: Install modules - run: npm install + run: npm ci - name: Run svelte checks run: npm run check - name: Check linting run: npm run eslint - name: Attempt to build codebase - run: npm run build + run: npm run build && npm prune --omit=dev