diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3822aaba..b8a85f68 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -33,11 +33,11 @@ jobs: with: ref: ${{ env.BRANCH_NAME }} - - name: Remove .npmrc file if exists - run: | - if [ -f .npmrc ]; then - rm .npmrc - fi + # - name: Remove .npmrc file if exists + # run: | + # if [ -f .npmrc ]; then + # rm .npmrc + # fi - name: Setup Node.js uses: actions/setup-node@v4 @@ -64,12 +64,14 @@ jobs: ' > ~/.m2/settings.xml - name: Configure Additional Registries + working-directory: nuxeo-admin-console-web/ang-src run: | - npm config set @hylandsoftware:registry https://npm.pkg.github.com --global - npm config set //npm.pkg.github.com/:_authToken=${{ secrets.GIT_TOKEN }} --global - npm config set //packages.nuxeo.com/repository/npm-public/:_authToken=${{ secrets.NPM_ADMIN_TOKEN }} --global - npm config set "@nuxeo:registry" "https://packages.nuxeo.com/repository/npm-public" --global - + echo "//npm.pkg.github.com/:_authToken=${{ secrets.GIT_TOKEN }}" >> .npmrc + echo "-------------------view pwd" + pwd + echo "---------------view .npmrc" + cat .npmrc + - name: Install Angular CLI run: npm install -g @angular/cli diff --git a/.gitignore b/.gitignore index c69a7306..ad2c2c0f 100644 --- a/.gitignore +++ b/.gitignore @@ -17,4 +17,3 @@ npm-debug.log coverage .angular package-lock.json -.npmrc diff --git a/nuxeo-admin-console-web/ang-src/.npmrc b/nuxeo-admin-console-web/ang-src/.npmrc new file mode 100644 index 00000000..58575ad0 --- /dev/null +++ b/nuxeo-admin-console-web/ang-src/.npmrc @@ -0,0 +1,3 @@ +@hylandsoftware:registry=https://npm.pkg.github.com +@nuxeo:registry=https://packages.nuxeo.com/repository/npm-public +registry=https://registry.npmjs.org/