diff --git a/.github/workflows/build-desktop-reusable.yml b/.github/workflows/build-desktop-reusable.yml index 59d192b8983d..17cbf1388c89 100644 --- a/.github/workflows/build-desktop-reusable.yml +++ b/.github/workflows/build-desktop-reusable.yml @@ -26,15 +26,25 @@ permissions: pull-requests: write jobs: - build-desktop-app: strategy: fail-fast: false matrix: config: [ - { name: "Linux", os: "ledger-live-4xlarge", image: "linux-x86_64.AppImage", output-name: "linux" }, - { name: "Windows", os: "windows-2022", dotnet: true, image: "win-x64.exe", output-name: "win" }, + { + name: "Linux", + os: "ledger-live-4xlarge", + image: "linux-x86_64.AppImage", + output-name: "linux", + }, + { + name: "Windows", + os: "windows-2022", + dotnet: true, + image: "win-x64.exe", + output-name: "win", + }, { name: "macOS", os: "macos-14", image: "mac.dmg", output-name: "mac" }, ] name: "${{ matrix.config.name }} Build" @@ -65,6 +75,11 @@ jobs: region: ${{ secrets.AWS_CACHE_REGION }} turbo-server-token: ${{ secrets.TURBOREPO_SERVER_TOKEN }} + - name: Setup jFrog + uses: ./tools/actions/composites/setup-jfrog + env: + NPM_REGISTRY: jfrog.ledgerlabs.net/artifactory/api/npm/ledger-live-npm-virtual-green + - name: Build desktop id: build-desktop uses: LedgerHQ/ledger-live/tools/actions/composites/setup-build-desktop@develop diff --git a/tools/actions/composites/setup-jfrog/action.yml b/tools/actions/composites/setup-jfrog/action.yml new file mode 100644 index 000000000000..3fc34dba06ff --- /dev/null +++ b/tools/actions/composites/setup-jfrog/action.yml @@ -0,0 +1,19 @@ +name: "Setup jFrog" +description: "Setup auth and configuration for jFrog" + +runs: + using: composite + steps: + - name: Login to internal JFrog registry + id: jfrog-login + uses: LedgerHQ/actions-security/actions/jfrog-login@actions/jfrog-login-1 + + - name: Setup npm config for JFrog + env: + NPM_REGISTRY_TOKEN: ${{ steps.jfrog-login.outputs.oidc-token }} + shell: bash + run: | + cat << EOF | tee -a .npmrc + registry=https://${NPM_REGISTRY}/ + //${NPM_REGISTRY}/:_authToken=${NPM_REGISTRY_TOKEN} + EOF