Skip to content

Commit

Permalink
new workflow for deploying to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Oba-One committed Nov 18, 2024
1 parent bc058ad commit b811276
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 23
node-version: 23.x
# Install dependencies with pnpm
- uses: pnpm/action-setup@v4
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 23 # Specify the Node.js version you use
node-version: 23.x # Specify the Node.js version you use
registry-url: https://npm.pkg.github.com

# Install dependencies with pnpm
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# .github/workflows/deploy-github-pages.yaml

# Workflow name
name: Build and Publish Storybook to GitHub Pages

on:
push:
branches:
- main

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

# List of jobs
jobs:
deploy:
runs-on: ubuntu-latest
# Job steps
steps:
# Manual Checkout
- uses: actions/checkout@v4

# Set up Node
- uses: actions/setup-node@v4
with:
node-version: "23.x"

# Install dependencies with pnpm
- uses: pnpm/action-setup@v4

#👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
- uses: bitovi/[email protected]
with:
install_command: pnpm install # default: npm ci
build_command: pnpm run build-storybook # default: npm run build-storybook
path: storybook-static # default: dist/storybook
checkout: false # default: true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@greenpill-dev-guild/components",
"name": "@greenpill-dev-guild/ui-components",
"version": "0.0.0",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
Expand Down

0 comments on commit b811276

Please sign in to comment.