mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
ci: Use a fixed version of NPM in the release process (no-changelog) (#4975)
ci: Use a fixed version of NPM in the release process
This commit is contained in:
parent
25e9f0817a
commit
d60a815a44
|
@ -6,7 +6,7 @@ COPY .npmrc /usr/local/etc/npmrc
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
apk add --update git graphicsmagick tini tzdata ca-certificates && \
|
apk add --update git graphicsmagick tini tzdata ca-certificates && \
|
||||||
npm install -g npm@latest full-icu && \
|
npm install -g npm@8.19.2 full-icu && \
|
||||||
rm -rf /var/cache/apk/* /root/.npm /tmp/* && \
|
rm -rf /var/cache/apk/* /root/.npm /tmp/* && \
|
||||||
# Install fonts
|
# Install fonts
|
||||||
apk --no-cache add --virtual fonts msttcorefonts-installer fontconfig && \
|
apk --no-cache add --virtual fonts msttcorefonts-installer fontconfig && \
|
||||||
|
|
|
@ -12,7 +12,7 @@ RUN \
|
||||||
# Set a custom user to not have n8n run as root
|
# Set a custom user to not have n8n run as root
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
RUN npm_config_user=root npm install -g npm@latest full-icu n8n@${N8N_VERSION}
|
RUN npm_config_user=root npm install -g npm@8.19.2 full-icu n8n@${N8N_VERSION}
|
||||||
|
|
||||||
ENV NODE_ICU_DATA /usr/local/lib/node_modules/full-icu
|
ENV NODE_ICU_DATA /usr/local/lib/node_modules/full-icu
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ RUN \
|
||||||
# Set a custom user to not have n8n run as root
|
# Set a custom user to not have n8n run as root
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
RUN npm_config_user=root npm install -g npm@latest n8n@${N8N_VERSION}
|
RUN npm_config_user=root npm install -g npm@8.19.2 n8n@${N8N_VERSION}
|
||||||
|
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue