Skip to content

Commit 256b4d1

Browse files
fixed_storybook and release
1 parent 6270199 commit 256b4d1

File tree

4 files changed

+97
-99
lines changed

4 files changed

+97
-99
lines changed

.circleci/config.yml

Lines changed: 83 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -2,84 +2,84 @@
22
#
33
version: 2
44
jobs:
5-
build:
6-
docker:
7-
- image: circleci/node:16
5+
# build:
6+
# docker:
7+
# - image: circleci/node:16
88

9-
working_directory: /tmp/ui
9+
# working_directory: /tmp/ui
1010

11-
steps:
12-
- checkout
13-
- restore_cache:
14-
keys:
15-
- dependencies-{{ checksum "package-lock.json" }}
16-
- run:
17-
name: Install node dependencies
18-
command: npm install
19-
- save_cache:
20-
paths:
21-
- node_modules
22-
key: dependencies-{{ checksum "package-lock.json" }}
23-
- run:
24-
name: Prettier check
25-
command: npm run check:prettier
26-
- run:
27-
name: Check linting
28-
command: npm run check:code
29-
- run:
30-
name: Build library
31-
command: npm run build
32-
- save_cache:
33-
paths:
34-
- lib
35-
key: lib-{{ .Branch }}-{{ .Revision }}
36-
- save_cache:
37-
paths:
38-
- dist
39-
key: dist-{{ .Branch }}-{{ .Revision }}
11+
# steps:
12+
# - checkout
13+
# - restore_cache:
14+
# keys:
15+
# - dependencies-{{ checksum "package-lock.json" }}
16+
# - run:
17+
# name: Install node dependencies
18+
# command: npm install
19+
# - save_cache:
20+
# paths:
21+
# - node_modules
22+
# key: dependencies-{{ checksum "package-lock.json" }}
23+
# - run:
24+
# name: Prettier check
25+
# command: npm run check:prettier
26+
# - run:
27+
# name: Check linting
28+
# command: npm run check:code
29+
# - run:
30+
# name: Build library
31+
# command: npm run build
32+
# - save_cache:
33+
# paths:
34+
# - lib
35+
# key: lib-{{ .Branch }}-{{ .Revision }}
36+
# - save_cache:
37+
# paths:
38+
# - dist
39+
# key: dist-{{ .Branch }}-{{ .Revision }}
4040

41-
deploy:
42-
docker:
43-
- image: circleci/node:16
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.dcl.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 "FullstackWEB-developer"
81-
git config user.email "[email protected]"
82-
./node_modules/.bin/gh-pages --dist storybook-static
80+
# git config user.name "FullstackWEB-developer"
81+
# git config user.email "[email protected]"
82+
# ./node_modules/.bin/gh-pages --dist storybook-static
8383

8484
release:
8585
docker:
@@ -109,19 +109,19 @@ workflows:
109109
version: 2
110110
build-deploy-release:
111111
jobs:
112-
- build:
113-
filters:
114-
branches:
115-
ignore: gh-pages
116-
- deploy:
117-
requires:
118-
- build
119-
filters:
120-
branches:
121-
only: master
112+
# - build:
113+
# filters:
114+
# branches:
115+
# ignore: gh-pages
116+
# - deploy:
117+
# requires:
118+
# - build
119+
# filters:
120+
# branches:
121+
# only: master
122122
- release:
123-
requires:
124-
- build
123+
# requires:
124+
# - build
125125
filters:
126126
branches:
127127
only: master

.github/workflows/release.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,18 @@ jobs:
88
name: Release
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v1
12-
13-
# you'll need to add an `id` in order to access output variables
14-
- uses: codfish/semantic-release-action@v1
15-
id: semantic
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: 'lts/*'
19+
- name: Install dependencies
20+
run: npm ci
21+
- name: Release
1622
env:
1723
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1824
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
19-
20-
- run: echo ${{ steps.semantic.outputs.release-version }}
21-
22-
- run: echo "$OUTPUTS"
23-
env:
24-
OUTPUTS: ${{ toJson(steps.semantic.outputs) }}
25-
26-
- uses: codfish/some-other-action@v1
27-
with:
28-
release-version: ${{ steps.semantic.outputs.release-version }}
25+
run: npx semantic-release

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@OWNER:registry=https://npm.pkg.github.com

now.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"version": 2,
3-
"alias": "ui.decentraland.org",
3+
"alias": "ui.dcl.org",
44
"build": {
55
"env": {}
66
},

0 commit comments

Comments
 (0)