diff --git a/.github/workflows/deploy-storybook.yml b/.github/workflows/chromatic.yml similarity index 96% rename from .github/workflows/deploy-storybook.yml rename to .github/workflows/chromatic.yml index 5c26b37..3c8827a 100644 --- a/.github/workflows/deploy-storybook.yml +++ b/.github/workflows/chromatic.yml @@ -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: diff --git a/.github/workflows/publish-package.yml b/.github/workflows/package.yml similarity index 94% rename from .github/workflows/publish-package.yml rename to .github/workflows/package.yml index b805a99..e3b9568 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/package.yml @@ -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 diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml new file mode 100644 index 0000000..f71157d --- /dev/null +++ b/.github/workflows/website.yml @@ -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/github-actions-storybook-to-github-pages@v1.0.3 + 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 diff --git a/package.json b/package.json index 11ec57d..d20bd6a 100644 --- a/package.json +++ b/package.json @@ -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",