@generation/icons 1.1.3 → 1.1.4

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.
@@ -1,4 +1,6 @@
1
1
  version: 2.1
2
+ orbs:
3
+ aws-s3: circleci/aws-s3@2.0.0
2
4
  jobs:
3
5
  install_dependencies:
4
6
  docker:
@@ -21,6 +23,7 @@ jobs:
21
23
  key: source-{{ .Branch }}-{{ .Revision }}
22
24
  paths:
23
25
  - "~/repo"
26
+
24
27
  build:
25
28
  docker:
26
29
  - image: cimg/node:20.14.0
@@ -33,11 +36,12 @@ jobs:
33
36
  - source-
34
37
  - run:
35
38
  name: Build bundle
36
- command: npm run build
39
+ command: npm run build-all
37
40
  - persist_to_workspace:
38
41
  root: "~/repo"
39
42
  paths:
40
43
  - package.json
44
+
41
45
  release:
42
46
  docker:
43
47
  - image: cimg/node:20.14.0
@@ -51,7 +55,37 @@ jobs:
51
55
  name: Build project in a minified and transpiled version
52
56
  command: npm run semantic-release
53
57
 
54
- # Workflow definition for concurrency
58
+ build-gallery:
59
+ docker:
60
+ - image: cimg/node:20.14.0
61
+ working_directory: ~/repo/packages/demo
62
+ steps:
63
+ - checkout
64
+ - run:
65
+ name: Install @generation/icons
66
+ command: npm install @generation/icons@latest
67
+ - run:
68
+ name: Build gallery
69
+ command: npm run build
70
+ - persist_to_workspace:
71
+ root: ~/repo/packages/demo
72
+ paths:
73
+ - dist
74
+ - package.json
75
+
76
+ deploy_to_dev:
77
+ docker:
78
+ - image: cimg/node:20.14.0
79
+ steps:
80
+ - attach_workspace:
81
+ at: "~/repo/packages/demo"
82
+ - aws-s3/sync:
83
+ from: dist
84
+ to: 's3://icons.deployment.dev'
85
+ arguments: |
86
+ --acl public-read \
87
+ --cache-control "max-age=86400"
88
+
55
89
  workflows:
56
90
  version: 2
57
91
  test_build_deploy_release:
@@ -67,4 +101,18 @@ workflows:
67
101
  filters:
68
102
  branches:
69
103
  only:
70
- - master
104
+ - master
105
+ - build-gallery:
106
+ requires:
107
+ - release
108
+ filters:
109
+ branches:
110
+ only:
111
+ - master
112
+ - deploy_to_dev:
113
+ requires:
114
+ - build-gallery
115
+ filters:
116
+ branches:
117
+ only:
118
+ - master