Skip to content

Commit 110c73c

Browse files
Bump version
1 parent 8408e75 commit 110c73c

File tree

5 files changed

+33
-138
lines changed

5 files changed

+33
-138
lines changed
Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
name: Deploy gh-pages
2-
3-
# on:
4-
# push:
5-
# branches: [ master ]
6-
# pull_request:
7-
# branches: [ master ]
82
on:
9-
release:
10-
types: [created]
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
branches: [ master ]
117

128
jobs:
139
build-deploy:
@@ -17,12 +13,12 @@ jobs:
1713
- uses: actions/setup-node@v2
1814
with:
1915
node-version: 14.17.0
20-
- run: rm .eslintrc package.json
21-
- run: yarn predeploy
22-
- name: Deploy to GitHub Pages
23-
uses: Cecilapp/GitHub-Pages-deploy@v3
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
26-
with:
27-
email: mail@sandeshshrestha.com
28-
build_dir: example/build
16+
# - name: Clean parent
17+
# run: rm .eslintrc package.json
18+
# - name: Build
19+
# run: cd example && yarn install && yarn add react-user-guide && yarn build
20+
# - name: Deploy to GitHub Pages
21+
# uses: JamesIves/github-pages-deploy-action@v4.2.2
22+
# with:
23+
# branch: gh-pages
24+
# folder: example/build

.github/workflows/publish.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
name: Node.js Package
1+
name: Node.js Package and GH pages deploy
22

3-
# on:
4-
# push:
5-
# branches: [ master ]
6-
# pull_request:
7-
# branches: [ master ]
83
on:
94
release:
105
types: [created]
116

127
jobs:
13-
build:
8+
build-deploy-npm-package-and-ghpage:
149
runs-on: ubuntu-latest
1510
steps:
1611
- uses: actions/checkout@v2
@@ -23,3 +18,13 @@ jobs:
2318
- run: npm publish
2419
env:
2520
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
21+
- name: Clean parent
22+
run: rm .eslintrc package.json
23+
- name: Build gh-pages
24+
run: cd example && yarn install && yarn add react-user-guide && yarn build
25+
- name: Deploy to GitHub Pages
26+
uses: JamesIves/github-pages-deploy-action@v4.2.2
27+
with:
28+
branch: gh-pages
29+
folder: example/build
30+

example/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"prop-types": "^15.8.0",
99
"react": "^17.0.2",
1010
"react-dom": "^17.0.2",
11-
"react-scripts": "^5.0.0",
12-
"react-user-guide": "link:.."
11+
"react-scripts": "^5.0.0"
1312
},
1413
"engines": {
1514
"node": ">=14.17.0",

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-user-guide",
3-
"version": "2.0.0",
3+
"version": "3.0.0",
44
"description": "React User Guide",
55
"author": "sandeshshrestha",
66
"license": "MIT",
@@ -19,9 +19,7 @@
1919
"build": "rollup -c",
2020
"start": "rollup -c -w",
2121
"scss": "node-sass src/custom-style.scss dist/custom-style.css",
22-
"scsswatch": "node-sass -w src/custom-style.scss dist/custom-style.css",
23-
"predeploy": "cd example && yarn install && yarn add react-user-guide && yarn build",
24-
"deploy": "gh-pages -d example/build"
22+
"scsswatch": "node-sass -w src/custom-style.scss dist/custom-style.css"
2523
},
2624
"peerDependencies": {
2725
"prop-types": "^15.5.4",
@@ -48,7 +46,6 @@
4846
"eslint-plugin-import": "^2.25.4",
4947
"eslint-plugin-react": "^7.28.0",
5048
"eslint-watch": "^8.0.0",
51-
"gh-pages": "^3.2.3",
5249
"lodash.debounce": "^4.0.8",
5350
"node-sass": "^7.0.1",
5451
"postcss": "^8.4.5",

yarn.lock

Lines changed: 5 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -2413,23 +2413,11 @@ array-includes@^3.1.3, array-includes@^3.1.4:
24132413
get-intrinsic "^1.1.1"
24142414
is-string "^1.0.7"
24152415

2416-
array-union@^1.0.1:
2417-
version "1.0.2"
2418-
resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39"
2419-
integrity sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=
2420-
dependencies:
2421-
array-uniq "^1.0.1"
2422-
24232416
array-union@^2.1.0:
24242417
version "2.1.0"
24252418
resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d"
24262419
integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==
24272420

2428-
array-uniq@^1.0.1:
2429-
version "1.0.3"
2430-
resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6"
2431-
integrity sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=
2432-
24332421
array.prototype.flat@^1.2.5:
24342422
version "1.2.5"
24352423
resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.2.5.tgz#07e0975d84bbc7c48cd1879d609e682598d33e13"
@@ -2485,7 +2473,7 @@ async@0.9.x:
24852473
resolved "https://registry.yarnpkg.com/async/-/async-0.9.2.tgz#aea74d5e61c1f899613bf64bda66d4c78f2fd17d"
24862474
integrity sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0=
24872475

2488-
async@^2.6.1, async@^2.6.2:
2476+
async@^2.6.2:
24892477
version "2.6.3"
24902478
resolved "https://registry.yarnpkg.com/async/-/async-2.6.3.tgz#d72625e2344a3656e3a3ad4fa749fa83299d82ff"
24912479
integrity sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==
@@ -3074,7 +3062,7 @@ combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6:
30743062
dependencies:
30753063
delayed-stream "~1.0.0"
30763064

3077-
commander@^2.18.0, commander@^2.20.0:
3065+
commander@^2.20.0:
30783066
version "2.20.3"
30793067
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
30803068
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
@@ -3779,11 +3767,6 @@ electron-to-chromium@^1.4.17:
37793767
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.38.tgz#10ea58d73d36b13e78d5024f3b74a352d3958d01"
37803768
integrity sha512-WhHt3sZazKj0KK/UpgsbGQnUUoFeAHVishzHFExMxagpZgjiGYSC9S0ZlbhCfSH2L2i+2A1yyqOIliTctMx7KQ==
37813769

3782-
email-addresses@^3.0.1:
3783-
version "3.1.0"
3784-
resolved "https://registry.yarnpkg.com/email-addresses/-/email-addresses-3.1.0.tgz#cabf7e085cbdb63008a70319a74e6136188812fb"
3785-
integrity sha512-k0/r7GrWVL32kZlGwfPNgB2Y/mMXVTq/decgLczm/j34whdaspNrZO8CnXPf1laaHxI6ptUlsnAxN+UAPw+fzg==
3786-
37873770
emittery@^0.8.1:
37883771
version "0.8.1"
37893772
resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.8.1.tgz#bb23cc86d03b30aa75a7f734819dee2e1ba70860"
@@ -3915,7 +3898,7 @@ escape-html@~1.0.3:
39153898
resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"
39163899
integrity sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=
39173900

3918-
escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5:
3901+
escape-string-regexp@^1.0.5:
39193902
version "1.0.5"
39203903
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
39213904
integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=
@@ -4409,20 +4392,6 @@ filelist@^1.0.1:
44094392
dependencies:
44104393
minimatch "^3.0.4"
44114394

4412-
filename-reserved-regex@^2.0.0:
4413-
version "2.0.0"
4414-
resolved "https://registry.yarnpkg.com/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz#abf73dfab735d045440abfea2d91f389ebbfa229"
4415-
integrity sha1-q/c9+rc10EVECr/qLZHzieu/oik=
4416-
4417-
filenamify@^4.3.0:
4418-
version "4.3.0"
4419-
resolved "https://registry.yarnpkg.com/filenamify/-/filenamify-4.3.0.tgz#62391cb58f02b09971c9d4f9d63b3cf9aba03106"
4420-
integrity sha512-hcFKyUG57yWGAzu1CMt/dPzYZuv+jAJUT85bL8mrXvNe6hWj6yEHEc4EdcgiA6Z3oi1/9wXJdZPXF2dZNgwgOg==
4421-
dependencies:
4422-
filename-reserved-regex "^2.0.0"
4423-
strip-outer "^1.0.1"
4424-
trim-repeated "^1.0.0"
4425-
44264395
filesize@^8.0.6:
44274396
version "8.0.6"
44284397
resolved "https://registry.yarnpkg.com/filesize/-/filesize-8.0.6.tgz#5f0c27aa1b507fa7d9f72c912a774ca6a44111b1"
@@ -4571,15 +4540,6 @@ fs-extra@^10.0.0:
45714540
jsonfile "^6.0.1"
45724541
universalify "^2.0.0"
45734542

4574-
fs-extra@^8.1.0:
4575-
version "8.1.0"
4576-
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0"
4577-
integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==
4578-
dependencies:
4579-
graceful-fs "^4.2.0"
4580-
jsonfile "^4.0.0"
4581-
universalify "^0.1.0"
4582-
45834543
fs-extra@^9.0.0, fs-extra@^9.0.1:
45844544
version "9.1.0"
45854545
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d"
@@ -4720,19 +4680,6 @@ getpass@^0.1.1:
47204680
dependencies:
47214681
assert-plus "^1.0.0"
47224682

4723-
gh-pages@^3.2.3:
4724-
version "3.2.3"
4725-
resolved "https://registry.yarnpkg.com/gh-pages/-/gh-pages-3.2.3.tgz#897e5f15e111f42af57d21d430b83e5cdf29472c"
4726-
integrity sha512-jA1PbapQ1jqzacECfjUaO9gV8uBgU6XNMV0oXLtfCX3haGLe5Atq8BxlrADhbD6/UdG9j6tZLWAkAybndOXTJg==
4727-
dependencies:
4728-
async "^2.6.1"
4729-
commander "^2.18.0"
4730-
email-addresses "^3.0.1"
4731-
filenamify "^4.3.0"
4732-
find-cache-dir "^3.3.1"
4733-
fs-extra "^8.1.0"
4734-
globby "^6.1.0"
4735-
47364683
glob-parent@^5.1.2, glob-parent@~5.1.2:
47374684
version "5.1.2"
47384685
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4"
@@ -4816,17 +4763,6 @@ globby@^11.0.1, globby@^11.0.4:
48164763
merge2 "^1.4.1"
48174764
slash "^3.0.0"
48184765

4819-
globby@^6.1.0:
4820-
version "6.1.0"
4821-
resolved "https://registry.yarnpkg.com/globby/-/globby-6.1.0.tgz#f5a6d70e8395e21c858fb0489d64df02424d506c"
4822-
integrity sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=
4823-
dependencies:
4824-
array-union "^1.0.1"
4825-
glob "^7.0.3"
4826-
object-assign "^4.0.1"
4827-
pify "^2.0.0"
4828-
pinkie-promise "^2.0.0"
4829-
48304766
globule@^1.0.0:
48314767
version "1.3.3"
48324768
resolved "https://registry.yarnpkg.com/globule/-/globule-1.3.3.tgz#811919eeac1ab7344e905f2e3be80a13447973c2"
@@ -6056,13 +5992,6 @@ json5@^2.1.2, json5@^2.2.0:
60565992
dependencies:
60575993
minimist "^1.2.5"
60585994

6059-
jsonfile@^4.0.0:
6060-
version "4.0.0"
6061-
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb"
6062-
integrity sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=
6063-
optionalDependencies:
6064-
graceful-fs "^4.1.6"
6065-
60665995
jsonfile@^6.0.1:
60675996
version "6.1.0"
60685997
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae"
@@ -6750,7 +6679,7 @@ oauth-sign@~0.9.0:
67506679
resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455"
67516680
integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==
67526681

6753-
object-assign@^4.0.1, object-assign@^4.1.1:
6682+
object-assign@^4.1.1:
67546683
version "4.1.1"
67556684
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
67566685
integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=
@@ -7088,28 +7017,11 @@ picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3:
70887017
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
70897018
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
70907019

7091-
pify@^2.0.0:
7092-
version "2.3.0"
7093-
resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c"
7094-
integrity sha1-7RQaasBDqEnqWISY59yosVMw6Qw=
7095-
70967020
pify@^5.0.0:
70977021
version "5.0.0"
70987022
resolved "https://registry.yarnpkg.com/pify/-/pify-5.0.0.tgz#1f5eca3f5e87ebec28cc6d54a0e4aaf00acc127f"
70997023
integrity sha512-eW/gHNMlxdSP6dmG6uJip6FXN0EQBwm2clYYd8Wul42Cwu/DK8HEftzsapcNdYe2MfLiIwZqsDk2RDEsTE79hA==
71007024

7101-
pinkie-promise@^2.0.0:
7102-
version "2.0.1"
7103-
resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa"
7104-
integrity sha1-ITXW36ejWMBprJsXh3YogihFD/o=
7105-
dependencies:
7106-
pinkie "^2.0.0"
7107-
7108-
pinkie@^2.0.0:
7109-
version "2.0.4"
7110-
resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870"
7111-
integrity sha1-clVrgM+g1IqXToDnckjoDtT3+HA=
7112-
71137025
pirates@^4.0.4:
71147026
version "4.0.4"
71157027
resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.4.tgz#07df81e61028e402735cdd49db701e4885b4e6e6"
@@ -8865,13 +8777,6 @@ strip-json-comments@^3.1.0, strip-json-comments@^3.1.1:
88658777
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006"
88668778
integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==
88678779

8868-
strip-outer@^1.0.1:
8869-
version "1.0.1"
8870-
resolved "https://registry.yarnpkg.com/strip-outer/-/strip-outer-1.0.1.tgz#b2fd2abf6604b9d1e6013057195df836b8a9d631"
8871-
integrity sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg==
8872-
dependencies:
8873-
escape-string-regexp "^1.0.2"
8874-
88758780
style-inject@^0.3.0:
88768781
version "0.3.0"
88778782
resolved "https://registry.yarnpkg.com/style-inject/-/style-inject-0.3.0.tgz#d21c477affec91811cc82355832a700d22bf8dd3"
@@ -9144,13 +9049,6 @@ trim-newlines@^3.0.0:
91449049
resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.1.tgz#260a5d962d8b752425b32f3a7db0dcacd176c144"
91459050
integrity sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==
91469051

9147-
trim-repeated@^1.0.0:
9148-
version "1.0.0"
9149-
resolved "https://registry.yarnpkg.com/trim-repeated/-/trim-repeated-1.0.0.tgz#e3646a2ea4e891312bf7eace6cfb05380bc01c21"
9150-
integrity sha1-42RqLqTokTEr9+rObPsFOAvAHCE=
9151-
dependencies:
9152-
escape-string-regexp "^1.0.2"
9153-
91549052
"true-case-path@^1.0.2":
91559053
version "1.0.3"
91569054
resolved "https://registry.yarnpkg.com/true-case-path/-/true-case-path-1.0.3.tgz#f813b5a8c86b40da59606722b144e3225799f47d"
@@ -9320,7 +9218,7 @@ unique-string@^2.0.0:
93209218
dependencies:
93219219
crypto-random-string "^2.0.0"
93229220

9323-
universalify@^0.1.0, universalify@^0.1.2:
9221+
universalify@^0.1.2:
93249222
version "0.1.2"
93259223
resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66"
93269224
integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==

0 commit comments

Comments
 (0)