@@ -38,48 +38,48 @@ jobs:
38
38
- dist
39
39
key : dist-{{ .Branch }}-{{ .Revision }}
40
40
41
- # deploy:
42
- # docker:
43
- # - image: circleci/node:10
41
+ deploy :
42
+ docker :
43
+ - image : circleci/node:16
44
44
45
- # working_directory: /tmp/ui
45
+ working_directory : /tmp/ui
46
46
47
- # steps:
48
- # - checkout
49
- # - restore_cache:
50
- # keys:
51
- # - dependencies-{{ checksum "package-lock.json" }}
52
- # - run:
53
- # name: Install node dependencies
54
- # command: npm install
55
- # - restore_cache:
56
- # keys:
57
- # - lib-{{ .Branch }}-{{ .Revision }}
58
- # - restore_cache:
59
- # keys:
60
- # - dist-{{ .Branch }}-{{ .Revision }}
61
- # - run:
62
- # name: Build storybook
63
- # command: npm run build:storybook
64
- # - run:
65
- # name: Copy styles from lib
66
- # command: cp ./lib/*.css ./storybook-static
67
- # - add_ssh_keys:
68
- # fingerprints:
69
- # - '7d:bf:98:9c:fa:d8:d5:9c:38:5c:4d:59:fe:8e:01:72'
70
- # - run:
71
- # name: Deploy to Github Pages
72
- # command: |
73
- # npm init --yes
74
- # npm install gh-pages --no-save
47
+ steps :
48
+ - checkout
49
+ - restore_cache :
50
+ keys :
51
+ - dependencies-{{ checksum "package-lock.json" }}
52
+ - run :
53
+ name : Install node dependencies
54
+ command : npm install
55
+ - restore_cache :
56
+ keys :
57
+ - lib-{{ .Branch }}-{{ .Revision }}
58
+ - restore_cache :
59
+ keys :
60
+ - dist-{{ .Branch }}-{{ .Revision }}
61
+ - run :
62
+ name : Build storybook
63
+ command : npm run build:storybook
64
+ - run :
65
+ name : Copy styles from lib
66
+ command : cp ./lib/*.css ./storybook-static
67
+ - add_ssh_keys :
68
+ fingerprints :
69
+ - ' 7d:bf:98:9c:fa:d8:d5:9c:38:5c:4d:59:fe:8e:01:72'
70
+ - run :
71
+ name : Deploy to Github Pages
72
+ command : |
73
+ npm init --yes
74
+ npm install gh-pages --no-save
75
75
76
- # mkdir storybook-static/.circleci
77
- # touch storybook-static/.circleci/config.yml
78
- # echo 'ui.decentraland .org' > storybook-static/CNAME
76
+ mkdir storybook-static/.circleci
77
+ touch storybook-static/.circleci/config.yml
78
+ echo 'ui.dcl .org' > storybook-static/CNAME
79
79
80
- # git config user.name "decentraland -bot"
81
- # git config user.email "developers@decentraland .org"
82
- # ./node_modules/.bin/gh-pages --dist storybook-static
80
+ git config user.name "dcl -bot"
81
+ git config user.email "developers@dcl .org"
82
+ ./node_modules/.bin/gh-pages --dist storybook-static
83
83
84
84
release :
85
85
docker :
@@ -113,12 +113,12 @@ workflows:
113
113
filters :
114
114
branches :
115
115
ignore : gh-pages
116
- # - deploy:
117
- # requires:
118
- # - build
119
- # filters:
120
- # branches:
121
- # only: master
116
+ - deploy :
117
+ requires :
118
+ - build
119
+ filters :
120
+ branches :
121
+ only : master
122
122
- release :
123
123
requires :
124
124
- build
0 commit comments