ci: only bootstrap the required projects when building desktop app

This commit is contained in:
Abdullah Atta
2023-06-23 19:12:41 +05:00
parent bb1cb8dc33
commit 8fb0071cf0

View File

@@ -113,7 +113,7 @@ jobs:
- name: Install packages - name: Install packages
run: | run: |
npm i --ignore-scripts --prefer-offline --no-audit npm i --ignore-scripts --prefer-offline --no-audit
npx lerna bootstrap --ignore=@notesnook/mobile -- --prefer-offline --no-audit npx lerna bootstrap --scope=@notesnook/desktop --scope=@notesnook/crypto --scope=@notesnook/sodium -- --prefer-offline --no-audit
- name: Install provisioning profile - name: Install provisioning profile
run: echo "${{ secrets.MAC_PROVISIONING_PROFILE }}" | base64 --decode > embedded.provisionprofile run: echo "${{ secrets.MAC_PROVISIONING_PROFILE }}" | base64 --decode > embedded.provisionprofile
@@ -188,7 +188,7 @@ jobs:
- name: Install packages - name: Install packages
run: | run: |
npm i --ignore-scripts --prefer-offline --no-audit npm i --ignore-scripts --prefer-offline --no-audit
npx lerna bootstrap --ignore=@notesnook/mobile -- --prefer-offline --no-audit npx lerna bootstrap --scope=@notesnook/desktop --scope=@notesnook/crypto --scope=@notesnook/sodium -- --prefer-offline --no-audit
- name: Build Electron wrapper - name: Build Electron wrapper
run: npx nx run release --project @notesnook/desktop run: npx nx run release --project @notesnook/desktop
@@ -238,7 +238,7 @@ jobs:
- name: Install packages - name: Install packages
run: | run: |
npm i --ignore-scripts --prefer-offline --no-audit npm i --ignore-scripts --prefer-offline --no-audit
npx lerna bootstrap --ignore=@notesnook/mobile -- --prefer-offline --no-audit npx lerna bootstrap --scope=@notesnook/desktop --scope=@notesnook/crypto --scope=@notesnook/sodium -- --prefer-offline --no-audit
- name: Build - name: Build
run: npx nx run release --project @notesnook/desktop run: npx nx run release --project @notesnook/desktop