Skip to content

Commit

Permalink
Update npm auth config for node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
yousif-bugsnag committed Jan 31, 2024
1 parent 8f380bd commit 2f9c3ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ services:
dockerfile: dockerfiles/Dockerfile.react-native-android-builder-java-17-node-18
args:
- REGISTRY_URL
- REGISTRY_URI
- REG_BASIC_CREDENTIAL
- REG_NPM_EMAIL
- MAVEN_REPO_URL
Expand All @@ -164,6 +165,7 @@ services:
- BRANCH_NAME
- BUILDKITE
- REGISTRY_URL
- REGISTRY_URI
- REACT_NATIVE_VERSION
- RN_NEW_ARCH
- NOTIFIER_VERSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ WORKDIR /app
RUN rm -f ~/.npmrc
ARG REG_BASIC_CREDENTIAL
ARG REG_NPM_EMAIL
RUN echo "_auth=$REG_BASIC_CREDENTIAL" >> ~/.npmrc
ARG REGISTRY_URL
ARG REGISTRY_URI
RUN echo "registry=$REGISTRY_URL" >> ~/.npmrc
RUN echo "$REGISTRY_URI:_auth=$REG_BASIC_CREDENTIAL" >> ~/.npmrc
RUN echo "email=$REG_NPM_EMAIL" >> ~/.npmrc
RUN echo "always-auth=true" >> ~/.npmrc

# gradle / artifactory auth
ARG MAVEN_REPO_URL
Expand Down

0 comments on commit 2f9c3ee

Please sign in to comment.