Skip to content

Commit 534df5a

Browse files
committed
build: npmrc to proxy all through verdaccio
1 parent 4a26618 commit 534df5a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ WORKDIR /usr/src/app
1111
# Copy app
1212
COPY . .
1313

14-
RUN echo "@asu-design-system:registry=https://registry.web.asu.edu/" > ~/.npmrc
14+
RUN echo "registry=https://registry.web.asu.edu/" > ~/.npmrc
1515
RUN echo "//registry.web.asu.edu/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
16+
COPY ~/.npmrc .npmrc
1617
RUN yarn install
1718
RUN yarn build
1819
RUN yarn build-storybook

Jenkinsfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ pipeline {
2424
}
2525
}
2626
steps {
27+
sh 'echo "registry=https://registry.web.asu.edu/" > ~/.npmrc'
2728
sh 'echo "//registry.web.asu.edu/:_authToken=$NPM_TOKEN" >> ~/.npmrc'
2829
//sh 'yarn add @storybook/storybook-deployer --ignore-workspace-root-check --registry https://registry.npmjs.org'
2930
sh 'yarn install'
@@ -53,6 +54,7 @@ pipeline {
5354
}
5455
steps {
5556
echo 'Publishing packages to private NPM registry...'
57+
sh 'echo "registry=https://registry.web.asu.edu/" > ~/.npmrc'
5658
sh 'echo "//registry.web.asu.edu/:_authToken=$NPM_TOKEN" >> ~/.npmrc'
5759
sh 'yarn publish-packages'
5860
}

0 commit comments

Comments
 (0)