@generation/icons 1.1.3 → 1.1.5
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/.circleci/config.yml +61 -3
- package/dist/index.js +1 -1
- package/package.json +3 -2
- package/packages/demo/image.png +0 -0
- package/packages/demo/package-lock.json +4 -4
- package/packages/demo/package.json +1 -1
- package/packages/demo/src/components/Gallery/Gallery.jsx +373 -3
- package/scripts/create-full.mjs +46 -0
- package/src/Icons/{Link.jsx → LinkIcon.jsx} +2 -2
- package/src/Icons/index.js +1 -1
- /package/assets/{link.svg → link-icon.svg} +0 -0
package/.circleci/config.yml
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
version: 2.1
|
|
2
|
+
orbs:
|
|
3
|
+
aws-s3: circleci/aws-s3@2.0.0
|
|
4
|
+
aws-cli: circleci/aws-cli@3.1.5
|
|
2
5
|
jobs:
|
|
3
6
|
install_dependencies:
|
|
4
7
|
docker:
|
|
@@ -21,6 +24,7 @@ jobs:
|
|
|
21
24
|
key: source-{{ .Branch }}-{{ .Revision }}
|
|
22
25
|
paths:
|
|
23
26
|
- "~/repo"
|
|
27
|
+
|
|
24
28
|
build:
|
|
25
29
|
docker:
|
|
26
30
|
- image: cimg/node:20.14.0
|
|
@@ -33,11 +37,12 @@ jobs:
|
|
|
33
37
|
- source-
|
|
34
38
|
- run:
|
|
35
39
|
name: Build bundle
|
|
36
|
-
command: npm run build
|
|
40
|
+
command: npm run build-all
|
|
37
41
|
- persist_to_workspace:
|
|
38
42
|
root: "~/repo"
|
|
39
43
|
paths:
|
|
40
44
|
- package.json
|
|
45
|
+
|
|
41
46
|
release:
|
|
42
47
|
docker:
|
|
43
48
|
- image: cimg/node:20.14.0
|
|
@@ -51,7 +56,45 @@ jobs:
|
|
|
51
56
|
name: Build project in a minified and transpiled version
|
|
52
57
|
command: npm run semantic-release
|
|
53
58
|
|
|
54
|
-
|
|
59
|
+
build-gallery:
|
|
60
|
+
docker:
|
|
61
|
+
- image: cimg/node:20.14.0
|
|
62
|
+
working_directory: ~/repo/packages/demo
|
|
63
|
+
steps:
|
|
64
|
+
- checkout
|
|
65
|
+
- run:
|
|
66
|
+
name: Install @generation/icons
|
|
67
|
+
command: npm install @generation/icons@latest
|
|
68
|
+
- run:
|
|
69
|
+
name: Build gallery
|
|
70
|
+
command: npm run build
|
|
71
|
+
- run:
|
|
72
|
+
name: Commit and push changes to package.json
|
|
73
|
+
command: |
|
|
74
|
+
git config user.name "RogerGeneration"
|
|
75
|
+
git config user.email "rogelio@generation.org"
|
|
76
|
+
git add package.json
|
|
77
|
+
git commit -m "chore(release): update package.json with latest @generation/icons"
|
|
78
|
+
git push -q https://${GITHUB_TOKEN}@github.com:digital-generation/generation-icons.git master
|
|
79
|
+
- persist_to_workspace:
|
|
80
|
+
root: ~/repo/packages/demo
|
|
81
|
+
paths:
|
|
82
|
+
- dist
|
|
83
|
+
- package.json
|
|
84
|
+
|
|
85
|
+
deploy_to_dev:
|
|
86
|
+
docker:
|
|
87
|
+
- image: cimg/node:20.14.0
|
|
88
|
+
steps:
|
|
89
|
+
- attach_workspace:
|
|
90
|
+
at: "~/repo/packages/demo"
|
|
91
|
+
- aws-s3/sync:
|
|
92
|
+
from: dist
|
|
93
|
+
to: 's3://icons.deployment.dev'
|
|
94
|
+
arguments: |
|
|
95
|
+
--acl public-read \
|
|
96
|
+
--cache-control "max-age=86400"
|
|
97
|
+
|
|
55
98
|
workflows:
|
|
56
99
|
version: 2
|
|
57
100
|
test_build_deploy_release:
|
|
@@ -67,4 +110,19 @@ workflows:
|
|
|
67
110
|
filters:
|
|
68
111
|
branches:
|
|
69
112
|
only:
|
|
70
|
-
- master
|
|
113
|
+
- master
|
|
114
|
+
- build-gallery:
|
|
115
|
+
requires:
|
|
116
|
+
- release
|
|
117
|
+
filters:
|
|
118
|
+
branches:
|
|
119
|
+
only:
|
|
120
|
+
- master
|
|
121
|
+
- deploy_to_dev:
|
|
122
|
+
context: aws-creds
|
|
123
|
+
requires:
|
|
124
|
+
- build-gallery
|
|
125
|
+
filters:
|
|
126
|
+
branches:
|
|
127
|
+
only:
|
|
128
|
+
- master
|