File tree 4 files changed +13
-0
lines changed
4 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ function Assets::build() {
101
101
--build-arg " SPRYKER_PIPELINE=${SPRYKER_PIPELINE} " \
102
102
--build-arg " SPRYKER_BUILD_HASH=${SPRYKER_BUILD_HASH:- " current" } " \
103
103
--build-arg " SPRYKER_BUILD_STAMP=${SPRYKER_BUILD_STAMP:- " " } " \
104
+ --build-arg " SPRYKER_NPM_TOKEN=${SPRYKER_NPM_TOKEN:- " " } " \
104
105
. 1>&2
105
106
106
107
Console::end " [DONE]"
Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ function Images::_buildApp() {
126
126
--build-arg " SPRYKER_PIPELINE=${SPRYKER_PIPELINE} " \
127
127
--build-arg " SPRYKER_BUILD_HASH=${SPRYKER_BUILD_HASH:- " current" } " \
128
128
--build-arg " SPRYKER_BUILD_STAMP=${SPRYKER_BUILD_STAMP:- " " } " \
129
+ --build-arg " SPRYKER_NPM_TOKEN=${SPRYKER_NPM_TOKEN:- " " } " \
129
130
. 1>&2
130
131
131
132
if [ -n " ${SPRYKER_XDEBUG_MODE_ENABLE} " ]; then
Original file line number Diff line number Diff line change @@ -9,6 +9,14 @@ COPY --chown=spryker:spryker package.json package-lock.json ${srcRoot}/
9
9
COPY --chown=spryker:spryker frontend* ${srcRoot}/frontend
10
10
COPY --chown=spryker:spryker tsconfig*.json ${srcRoot}/
11
11
COPY --chown=spryker:spryker config/Yves ${srcRoot}/config/Yves
12
+ COPY --chown=spryker:spryker .npmrc ${srcRoot}/
13
+
14
+ ARG SPRYKER_NPM_TOKEN
15
+ ENV SPRYKER_NPM_TOKEN=${SPRYKER_NPM_TOKEN}
16
+
17
+ RUN if [ -n "$SPRYKER_NPM_TOKEN" ]; then \
18
+ sed -i "s|\$ {SPRYKER_NPM_TOKEN}|${SPRYKER_NPM_TOKEN}|" .npmrc; \
19
+ fi
12
20
13
21
ARG SPRYKER_ASSETS_MODE='development'
14
22
ENV SPRYKER_ASSETS_MODE=${SPRYKER_ASSETS_MODE}
Original file line number Diff line number Diff line change @@ -5,3 +5,6 @@ FROM ${SPRYKER_PARENT_IMAGE} as cli-development
5
5
6
6
ENV DEVELOPMENT_CONSOLE_COMMANDS=1
7
7
8
+ ARG SPRYKER_NPM_TOKEN
9
+ ENV SPRYKER_NPM_TOKEN=${SPRYKER_NPM_TOKEN}
10
+
You can’t perform that action at this time.
0 commit comments