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 CHANGED
@@ -20,6 +20,7 @@
20
20
 
21
21
  ## 12.3.0
22
22
 
23
+ - Dockerfile changes - [@glensc]
23
24
  - Use node 18 for pre-built versions of danger (used by Danger Swift / Kotlin et al) - [@heltoft]
24
25
 
25
26
  ## 12.2.0
package/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM node:18-slim as build
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danger",
3
- "version": "12.2.1",
3
+ "version": "12.3.0",
4
4
  "description": "Unit tests for Team Culture",
5
5
  "main": "distribution/danger.js",
6
6
  "typings": "distribution/danger.d.ts",