From bb5235b06e50e01e404c659f210c85dc00624c1a Mon Sep 17 00:00:00 2001 From: Shivangi Shree Date: Fri, 11 Sep 2026 16:34:01 +0530 Subject: [PATCH] [ACS-12322] Test build pass --- .github/actions/publish-image/action.yml | 7 ++++++ .github/actions/publish-libs/action.yml | 6 +++++ .github/actions/setup/action.yml | 4 +++ .github/workflows/cron-e2e.yml | 4 +++ .github/workflows/e2e-playwright-reusable.yml | 3 +++ .github/workflows/pull-request.yml | 25 +++++++++++++++++++ .github/workflows/release.yml | 11 +++++++- .github/workflows/run-e2e-with-env.yml | 1 + .npmrc | 3 +-- 9 files changed, 61 insertions(+), 3 deletions(-) diff --git a/.github/actions/publish-image/action.yml b/.github/actions/publish-image/action.yml index 6baa34711..9473e3b21 100644 --- a/.github/actions/publish-image/action.yml +++ b/.github/actions/publish-image/action.yml @@ -34,6 +34,13 @@ runs: username: ${{ inputs.username }} password: ${{ inputs.password }} + + - name: Configure private registry auth + shell: bash + run: pnpm config set "//npm.pkg.github.com/:_authToken" "${PACKAGE_AUTH_TOKEN}" + env: + PACKAGE_AUTH_TOKEN: ${{ secrets.PACKAGE_AUTH_TOKEN }} + - name: Install dependencies and build project shell: bash run: | diff --git a/.github/actions/publish-libs/action.yml b/.github/actions/publish-libs/action.yml index 4ceedd265..4f64139cd 100644 --- a/.github/actions/publish-libs/action.yml +++ b/.github/actions/publish-libs/action.yml @@ -24,6 +24,12 @@ runs: branch_name: ${{ env.BRANCH_NAME }} dry-run: ${{ inputs.dry-run }} + - name: Configure private registry auth + shell: bash + run: pnpm config set "//npm.pkg.github.com/:_authToken" "${PACKAGE_AUTH_TOKEN}" + env: + PACKAGE_AUTH_TOKEN: ${{ inputs.github_token }} + - name: Install dependencies shell: bash run: pnpm install --frozen-lockfile diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 6d08c4965..9877cecee 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -57,3 +57,7 @@ runs: with: node-version-file: '.nvmrc' cache: 'pnpm' + + - name: Configure private registry auth + shell: bash + run: pnpm config set "//npm.pkg.github.com/:_authToken" "${PACKAGE_AUTH_TOKEN}" diff --git a/.github/workflows/cron-e2e.yml b/.github/workflows/cron-e2e.yml index 7bec04032..949195e52 100644 --- a/.github/workflows/cron-e2e.yml +++ b/.github/workflows/cron-e2e.yml @@ -18,6 +18,7 @@ jobs: DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }} QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} + PACKAGE_AUTH_TOKEN: ${{ secrets.PACKAGE_AUTH_TOKEN }} firefox: name: "Cron browser E2E run - firefox" @@ -32,6 +33,7 @@ jobs: DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }} QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} + PACKAGE_AUTH_TOKEN: ${{ secrets.PACKAGE_AUTH_TOKEN }} webkit: name: "Cron browser E2E run - webkit" @@ -46,6 +48,7 @@ jobs: DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }} QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} + PACKAGE_AUTH_TOKEN: ${{ secrets.PACKAGE_AUTH_TOKEN }} msedge: name: "Cron browser E2E run - msedge" @@ -60,6 +63,7 @@ jobs: DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }} QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} + PACKAGE_AUTH_TOKEN: ${{ secrets.PACKAGE_AUTH_TOKEN }} report-to-teams: name: "Aggregate results and notify Teams" diff --git a/.github/workflows/e2e-playwright-reusable.yml b/.github/workflows/e2e-playwright-reusable.yml index 6d447f55b..2278ce825 100644 --- a/.github/workflows/e2e-playwright-reusable.yml +++ b/.github/workflows/e2e-playwright-reusable.yml @@ -17,6 +17,8 @@ on: required: true QUAY_PASSWORD: required: true + PACKAGE_AUTH_TOKEN: + required: false env: BASE_URL: http://localhost @@ -30,6 +32,7 @@ env: REPORT_PORTAL_TOKEN: ${{ secrets.REPORT_PORTAL_TOKEN }} MAXINSTANCES: 2 RETRY_COUNT: 2 + PACKAGE_AUTH_TOKEN: ${{ secrets.PACKAGE_AUTH_TOKEN }} jobs: build: diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 844429c35..b66c0102d 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -33,6 +33,12 @@ jobs: with: fetch-depth: 0 + - name: Configure private registry auth + shell: bash + run: pnpm config set "//npm.pkg.github.com/:_authToken" "${PACKAGE_AUTH_TOKEN}" + env: + PACKAGE_AUTH_TOKEN: ${{ secrets.PACKAGE_AUTH_TOKEN }} + - uses: ./.github/actions/setup - run: pnpm install --frozen-lockfile @@ -113,6 +119,12 @@ jobs: with: fetch-depth: 2 + - name: Configure private registry auth + shell: bash + run: pnpm config set "//npm.pkg.github.com/:_authToken" "${PACKAGE_AUTH_TOKEN}" + env: + PACKAGE_AUTH_TOKEN: ${{ secrets.PACKAGE_AUTH_TOKEN }} + - uses: ./.github/actions/before-install - run: pnpm install --frozen-lockfile - name: upload npm logs @@ -141,6 +153,13 @@ jobs: uses: actions/checkout@v7 with: fetch-depth: 0 + + - name: Configure private registry auth + shell: bash + run: pnpm config set "//npm.pkg.github.com/:_authToken" "${PACKAGE_AUTH_TOKEN}" + env: + PACKAGE_AUTH_TOKEN: ${{ secrets.PACKAGE_AUTH_TOKEN }} + - uses: ./.github/actions/before-install - run: pnpm install --frozen-lockfile - name: upload npm logs @@ -239,6 +258,12 @@ jobs: - name: Before install uses: ./.github/actions/before-install + - name: Configure private registry auth + shell: bash + run: pnpm config set "//npm.pkg.github.com/:_authToken" "${PACKAGE_AUTH_TOKEN}" + env: + PACKAGE_AUTH_TOKEN: ${{ secrets.PACKAGE_AUTH_TOKEN }} + - name: Install dependencies run: pnpm install --frozen-lockfile diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 54f6dee48..d9f47af0f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,6 +59,11 @@ jobs: uses: actions/checkout@v7 with: fetch-depth: 0 + - name: Configure private registry auth + shell: bash + run: pnpm config set "//npm.pkg.github.com/:_authToken" "${PACKAGE_AUTH_TOKEN}" + env: + PACKAGE_AUTH_TOKEN: ${{ secrets.PACKAGE_AUTH_TOKEN }} - uses: ./.github/actions/setup - run: pnpm install --frozen-lockfile @@ -81,7 +86,11 @@ jobs: uses: actions/checkout@v7 with: fetch-depth: 0 - + - name: Configure private registry auth + shell: bash + run: pnpm config set "//npm.pkg.github.com/:_authToken" "${PACKAGE_AUTH_TOKEN}" + env: + PACKAGE_AUTH_TOKEN: ${{ secrets.PACKAGE_AUTH_TOKEN }} - uses: ./.github/actions/before-install - run: pnpm install --frozen-lockfile - run: pnpm affected:test --browsers=ChromeHeadless --watch=false $TEST_OPTS --base=origin/develop diff --git a/.github/workflows/run-e2e-with-env.yml b/.github/workflows/run-e2e-with-env.yml index f486c8443..fd7d87f31 100644 --- a/.github/workflows/run-e2e-with-env.yml +++ b/.github/workflows/run-e2e-with-env.yml @@ -26,6 +26,7 @@ env: REPORT_PORTAL_TOKEN: ${{ secrets.REPORT_PORTAL_TOKEN }} MAXINSTANCES: 2 RETRY_COUNT: 2 + PACKAGE_AUTH_TOKEN: ${{ secrets.PACKAGE_AUTH_TOKEN }} jobs: diff --git a/.npmrc b/.npmrc index 41f3db4d0..42302ae66 100644 --- a/.npmrc +++ b/.npmrc @@ -4,5 +4,4 @@ audit-level=high # Use exact versions to prevent unexpected updates save-exact=true @alfresco:registry=https://npm.pkg.github.com/ -@jsr:registry=https://npm.jsr.io/ -//npm.pkg.github.com/:_authToken=${PACKAGE_AUTH_TOKEN} \ No newline at end of file +@jsr:registry=https://npm.jsr.io/ \ No newline at end of file