danger 12.2.1 → 12.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -0
- package/Dockerfile +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
FROM node:18-slim as
|
|
1
|
+
FROM node:18-slim as base
|
|
2
2
|
|
|
3
3
|
LABEL maintainer="Orta Therox"
|
|
4
4
|
LABEL "com.github.actions.name"="Danger JS Action"
|
|
@@ -7,6 +7,8 @@ LABEL "com.github.actions.icon"="zap"
|
|
|
7
7
|
LABEL "com.github.actions.color"="blue"
|
|
8
8
|
|
|
9
9
|
WORKDIR /usr/src/danger
|
|
10
|
+
|
|
11
|
+
FROM base as build
|
|
10
12
|
COPY package.json yarn.lock ./
|
|
11
13
|
RUN yarn install
|
|
12
14
|
COPY . .
|
|
@@ -15,9 +17,7 @@ RUN yarn remove 'typescript' --dev && yarn add 'typescript'
|
|
|
15
17
|
RUN yarn install --production --frozen-lockfile
|
|
16
18
|
RUN chmod +x distribution/commands/danger.js
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
FROM node:18-slim
|
|
20
|
-
WORKDIR /usr/src/danger
|
|
20
|
+
FROM base
|
|
21
21
|
ENV PATH="/usr/src/danger/node_modules/.bin:$PATH"
|
|
22
22
|
COPY package.json ./
|
|
23
23
|
COPY --from=build /usr/src/danger/distribution ./dist
|