From 1d553bf4f9d9d1a40bf8a4a6ecdcd1cc5dbd170e Mon Sep 17 00:00:00 2001 From: rahuljain-dev Date: Tue, 20 Feb 2024 11:49:50 +0530 Subject: [PATCH] WEBUI-1453: elements ftests not working in cross repo check - node18 --- .github/workflows/cross-repo.yaml | 13 +++++++++++++ .github/workflows/ftest.yaml | 3 +-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cross-repo.yaml b/.github/workflows/cross-repo.yaml index 85302b1ba5..71206da39e 100644 --- a/.github/workflows/cross-repo.yaml +++ b/.github/workflows/cross-repo.yaml @@ -67,6 +67,7 @@ jobs: with: registry-url: ${{ env.NPM_REPOSITORY }} scope: '@nuxeo' + node-version: 18 - uses: actions/setup-java@v2 with: @@ -141,6 +142,18 @@ jobs: popd popd + - name: Add .npmrc + run: | + pushd /tmp/_temp/ + rm .npmrc + touch .npmrc + popd + echo ' + packages.nuxeo.com/repository/npm-public/:_auth=${NODE_AUTH_TOKEN} + @nuxeo:registry=https://packages.nuxeo.com/repository/npm-public/ + always-auth=true + ' >> /tmp/_temp/.npmrc + - name: Link elements to Web UI run: | npm install --no-package-lock --@nuxeo:registry="${{ env.NPM_REPOSITORY }}" nuxeo-elements/core/${ELEMENTS_CORE} diff --git a/.github/workflows/ftest.yaml b/.github/workflows/ftest.yaml index 335f9d0a9b..5553bbde74 100644 --- a/.github/workflows/ftest.yaml +++ b/.github/workflows/ftest.yaml @@ -95,10 +95,9 @@ jobs: popd popd - - name: add .npmrc + - name: Add .npmrc run: | pushd /tmp/_temp/ - ls rm .npmrc touch .npmrc popd