Skip to content

Commit b19797f

Browse files
ErioldDaniel Montoya
andauthored
Documentation (#572)
* feat(update): change yml for deploy Co-authored-by: Daniel Montoya <daniel.montoya@eclass.cl>
1 parent 6714e2c commit b19797f

File tree

3 files changed

+186
-2
lines changed

3 files changed

+186
-2
lines changed

.github/workflows/nodejs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ jobs:
5151
- name: Clean install on CI
5252
run: npm ci
5353
- name: Build library
54+
env:
55+
VITE_REACT_DEPLOY_DOCUMENTATION: ${{secrets.VITE_REACT_DEPLOY_DOCUMENTATION}}
5456
run: npm run build
5557
- name: Release version
5658
run: npx semantic-release@18
@@ -77,5 +79,6 @@ jobs:
7779
- name: Deploy to GH Pages with vite server
7880
env:
7981
GH_TOKEN: eclass:${{ secrets.GITHUB_TOKEN }}
82+
VITE_REACT_DEPLOY_DOCUMENTATION: ${{secrets.VITE_REACT_DEPLOY_DOCUMENTATION}}
8083
run: npm run deploy
8184

package-lock.json

Lines changed: 180 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"ts-compile-check": "tsc -p tsconfig.json",
4444
"prepare": "ts-patch install -s && node ./prepare.js",
4545
"preinstall": "npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions",
46-
"deploy": "gh-pages -d build"
46+
"deploy": "gh-pages -d dist"
4747
},
4848
"publishConfig": {
4949
"access": "public"
@@ -91,6 +91,7 @@
9191
"eslint-plugin-react-hooks": "4.6.0",
9292
"eslint-plugin-simple-import-sort": "7.0.0",
9393
"eslint-plugin-testing-library": "5.11.1",
94+
"gh-pages": "^6.0.0",
9495
"graphql": "16.3.0",
9596
"husky": "7.0.4",
9697
"identity-obj-proxy": "3.0.0",
@@ -99,9 +100,9 @@
99100
"lint-staged": "12.3.7",
100101
"prettier": "2.6.1",
101102
"react": "17.0.2",
103+
"react-code-blocks": "0.1.3",
102104
"react-dom": "17.0.2",
103105
"react-router-dom": "6.14.2",
104-
"react-code-blocks": "0.1.3",
105106
"semantic-release": "18.0.1",
106107
"ts-jest": "27.1.5",
107108
"ts-patch": "2.0.1",

0 commit comments

Comments
 (0)