Skip to content

Commit

Permalink
[HFRONT-1135]: upgrade gh pages (#583)
Browse files Browse the repository at this point in the history
* fix(gh-pages): remove redundant npm package

* Patch update

* ci(gh-pages): fix deployment of storybook to github pages
  • Loading branch information
ehsan-github authored Feb 21, 2024
1 parent 737ee54 commit 2514f3b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 110 deletions.
35 changes: 25 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,23 @@ on:
push:
branches:
- dev

permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: 'pages'
cancel-in-progress: false

jobs:
build-and-deploy-storybook:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🗒️
Expand Down Expand Up @@ -40,16 +55,16 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Build Quartz
run: |
pnpm build
- run: NODE_OPTIONS=--max_old_space_size=4096 pnpm run build-storybook

- name: Build StoryBook🤖
run: |
NODE_OPTIONS=--max_old_space_size=4096 pnpm run build-storybook
- name: Setup Pages
uses: actions/configure-pages@v4

- name: Deploy 🚀
uses: JamesIves/github-pages-[email protected]
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
branch: gh-pages
folder: storybook-static
path: './storybook-static'

- name: Deploy to GitHub Pages 🚀
id: deployment
uses: actions/deploy-pages@v4
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"gh-pages": "^5.0.0",
"jest": "29.7.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.2.5",
Expand All @@ -137,7 +136,7 @@
"typescript": "^5.3.3",
"vite": "^4.5.2",
"vite-plugin-css-injected-by-js": "^3.4.0",
"vite-plugin-dts": "^3.7.2",
"vite-plugin-dts": "^3.7.3",
"vite-plugin-svgr": "^4.2.0",
"vite-plugin-turbosnap": "^1.0.3",
"wait-on": "^7.2.0",
Expand Down
103 changes: 5 additions & 98 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2514f3b

Please sign in to comment.