Skip to content

Commit 92874d5

Browse files
add_publishConfig
1 parent c2b9524 commit 92874d5

File tree

2 files changed

+47
-44
lines changed

2 files changed

+47
-44
lines changed

.circleci/config.yml

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -38,48 +38,48 @@ jobs:
3838
- dist
3939
key: dist-{{ .Branch }}-{{ .Revision }}
4040

41-
# deploy:
42-
# docker:
43-
# - image: circleci/node:10
41+
deploy:
42+
docker:
43+
- image: circleci/node:16
4444

45-
# working_directory: /tmp/ui
45+
working_directory: /tmp/ui
4646

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
7575
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
7979
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
8383
8484
release:
8585
docker:
@@ -113,12 +113,12 @@ workflows:
113113
filters:
114114
branches:
115115
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
122122
- release:
123123
requires:
124124
- build

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
"type": "git",
2424
"url": "https://github.com/FullstackWEB-developer/dcl-ui.git"
2525
},
26+
"publishConfig": {
27+
"registry": "https://npm.pkg.github.com/"
28+
},
2629
"keywords": [
2730
"dcl",
2831
"ui",

0 commit comments

Comments
 (0)