Skip to content

Commit b3adf33

Browse files
authored
Merge pull request #336 from Workiva/wk-cdn
RM-138703 Release react-dart 6.1.6 (Publish JS bundles to Workiva CDN)
2 parents 8019e54 + 5169086 commit b3adf33

File tree

4 files changed

+32
-1
lines changed

4 files changed

+32
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [6.1.6](https://github.com/cleandart/react-dart/compare/6.1.5...6.1.6)##
2+
- [#336] Publish JS bundles to Workiva CDN
3+
14
## [6.1.5](https://github.com/cleandart/react-dart/compare/6.1.4...6.1.5)##
25
- [#333] Remove old, unused file from bin/
36

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
FROM google/dart:2.13
2+
3+
WORKDIR /build
24
COPY pubspec.yaml .
5+
36
RUN dart pub get
7+
8+
COPY /lib ./lib/
9+
RUN cd lib && tar -czvf ../cdn_assets.tar.gz *.js *.map
10+
ARG BUILD_ARTIFACTS_CDN=/build/cdn_assets.tar.gz
11+
412
FROM scratch

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: react
2-
version: 6.1.5
2+
version: 6.1.6
33
description: Bindings of the ReactJS library for building interactive interfaces.
44
homepage: https://github.com/cleandart/react-dart
55
environment:

skynet.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: validate_cdn_artifact
2+
description: Verifies the cdn artifact generated in the build contains the JS bundle files
3+
image: drydock.workiva.net/workiva/skynet-images:node-test-image-latest
4+
size: large
5+
timeout: 900
6+
7+
requires:
8+
Workiva/react-dart:
9+
- cdn
10+
11+
scripts:
12+
- mkdir build
13+
- cp $SKYNET_APPLICATION_REACT_DART_CDN ./build
14+
- cd build
15+
- tar -xf cdn_assets.tar.gz
16+
- test -e ./react.js && { echo 'Verified dev bundle exists in CDN artifact.'; } || { echo 'Dev bundle /lib/react.js should exist in CDN artifact.'; exit 1; }
17+
- test -e ./react_dom.js && { echo 'Verified dev DOM bundle exists in CDN artifact.'; } || { echo 'Dev DOM bundle /lib/react_dom.js should exist in CDN artifact.'; exit 1; }
18+
- test -e ./react_with_react_dom_prod.js && { echo 'Verified prod bundle exists in CDN artifact.'; } || { echo 'Prod bundle /lib/react_with_react_dom_prod.js should exist in CDN artifact.'; exit 1; }
19+
- test -e ./react_prod.js && { echo 'Verified prod bundle exists in CDN artifact.'; } || { echo 'Prod bundle /lib/react_prod.js should exist in CDN artifact.'; exit 1; }
20+
- test -e ./react_dom_prod.js && { echo 'Verified prod DOM bundle exists in CDN artifact.'; } || { echo 'Prod DOM bundle /lib/react_dom_prod.js should exist in CDN artifact.'; exit 1; }

0 commit comments

Comments
 (0)