Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: Deploy to Pages

on:
# Temporarily disabled - re-enable by adding push trigger back
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
Expand All @@ -25,28 +29,26 @@ jobs:

- name: pnpm 🧰
uses: pnpm/action-setup@v6
with:
version: 10

- name: Node 🧰
uses: actions/setup-node@v6
with:
node-version: '20.x'
node-version: 24.x
cache: "pnpm"

- name: Install 📦
run: pnpm install

- name: Build 🛠
run: pnpm document:build
run: pnpm docs:build

- name: Setup Pages 🧰
uses: actions/configure-pages@v4

- name: Upload artifact 🚀
uses: actions/upload-pages-artifact@v3
with:
path: ./packages/document/storybook-static/
path: ./packages/docs/storybook-static/

deploy:
environment:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/pgk-pr-new.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,11 @@ jobs:

- name: pnpm 🧰
uses: pnpm/action-setup@v6
with:
version: 10

- name: Node 🧰
uses: actions/setup-node@v6
with:
node-version: 22.x
node-version: 24.x

- name: Install 📦
run: pnpm install --frozen-lockfile
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@ jobs:

- name: pnpm 🧰
uses: pnpm/action-setup@v6
with:
version: 10

- name: Node 🧰
uses: actions/setup-node@v6
with:
node-version: 22.x
node-version: 24.x
registry-url: https://registry.npmjs.org
cache: 'pnpm'

Expand Down
2 changes: 1 addition & 1 deletion .mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"mcpServers": {
"storybook": {
"command": "pnpm",
"args": ["--filter", "document", "run", "mcp"]
"args": ["--filter", "docs", "run", "mcp"]
}
}
}
16 changes: 15 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,16 @@
# Netlify reads this file before anything configured in the dashboard, so the
# whole build lives here on purpose: the dashboard settings are invisible to
# code review and silently rotted once the package they pointed at was renamed.
#
# `base` is pinned explicitly to neutralise any base directory left over in the
# dashboard — a stale one would abort the build before this file is even read.
# The pnpm version comes from the root `packageManager` field via Corepack;
# Netlify has no PNPM_VERSION variable.

[build]
base = "/"
command = "pnpm docs:build"
publish = "packages/docs/storybook-static"

[build.environment]
NODE_VERSION = "20"
NODE_VERSION = "24"
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "root",
"private": true,
"packageManager": "pnpm@11.22.0",
"author": {
"name": "Alessandro Casazza",
"email": "alessandro@commercelayer.io"
Expand All @@ -11,8 +12,8 @@
"build:watch": "pnpm --filter @commercelayer/core-components --filter @commercelayer/react-hooks-components --filter @commercelayer/react-components --parallel build:watch",
"prepare": "husky",
"test": "pnpm -r --workspace-concurrency=1 --no-bail test",
"document:dev": "pnpm --filter document storybook",
"document:build": "pnpm --filter document build-storybook",
"docs:dev": "pnpm --filter docs storybook",
"docs:build": "pnpm --filter docs build-storybook",
"components:build:dev": "pnpm --filter react-components build:dev",
"components:build": "pnpm --filter react-components build",
"make:version": "lerna version --no-private",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "document",
"name": "docs",
"private": true,
"version": "0.0.0",
"type": "module",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Loading