Skip to content

Commit

Permalink
SUPINT-2380: set .npmrc in build
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshkumar1019 committed Jun 13, 2024
1 parent ab597fd commit 30c1a82
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -64,12 +64,14 @@ jobs:
</settings>' > ~/.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

Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ npm-debug.log
coverage
.angular
package-lock.json
.npmrc
3 changes: 3 additions & 0 deletions nuxeo-admin-console-web/ang-src/.npmrc
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit 30c1a82

Please sign in to comment.