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
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
- name: Install mise
uses: jdx/mise-action@v2
- name: Install dependencies
run: pnpm install --frozen-lockfile
run: npm ci
- name: Check code format
run: pnpm run format:check
run: npm run format:check
- name: Build packages
run: pnpm --filter './packages/*' run build
run: npm run build -w @xennis/react-notion-cms-fetch -w @xennis/react-notion-cms-render
#- name: Build examples
# run: pnpm --filter './examples/*' run build
# run: npm run build -w nextjs
11 changes: 5 additions & 6 deletions .github/workflows/examples-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,16 @@ jobs:
path: |
.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Install dependencies
run: "pnpm install --frozen-lockfile"
run: "npm ci"
- name: Build packages
run: "pnpm --filter './packages/*' run build"
run: "npm run build -w @xennis/react-notion-cms-fetch -w @xennis/react-notion-cms-render"
- name: Build with Next.js
#run: "pnpm --filter ./examples/nextjs run build"
run: "pnpm run build"
run: "npm run build"
working-directory: "./examples/nextjs"
env:
GITHUB_PAGE_BASE_PATH: "/react-notion-render"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
- name: Install mise
uses: jdx/mise-action@v2
- name: Install dependencies
run: pnpm install --frozen-lockfile
run: npm ci
- name: Build packages
run: pnpm --filter './packages/*' run build
run: npm run build -w @xennis/react-notion-cms-fetch -w @xennis/react-notion-cms-render
- name: Set publishing config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
run: npm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish packages
run: pnpm publish --recursive --no-git-checks --access=public
run: npm publish --workspaces --access=public
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
dist/
node_modules/

# pnpm
pnpm-publish-summary.json
*.tsbuildinfo

# Next.js
examples/**/.next/
Expand Down
10 changes: 2 additions & 8 deletions examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
},
"dependencies": {
"@notionhq/client": "^5.22.0",
"@xennis/react-notion-cms-fetch": "workspace:*",
"@xennis/react-notion-cms-render": "workspace:*",
"@xennis/react-notion-cms-fetch": "*",
"@xennis/react-notion-cms-render": "*",
"highlight.js": "^11.11.1",
"next": "16.2.6",
"prismjs": "^1.30.0",
Expand All @@ -27,11 +27,5 @@
"postcss": "^8.5.15",
"tailwindcss": "^4.3.0",
"typescript": "^6.0.3"
},
"pnpm": {
"overrides": {
"@types/react": "19.0.7",
"@types/react-dom": "19.0.3"
}
}
}
12 changes: 9 additions & 3 deletions examples/nextjs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,22 @@
"incremental": true,
"module": "esnext",
"esModuleInterop": true,
"moduleResolution": "node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react-jsx",
"plugins": [
{
"name": "next"
}
]
},
"include": ["next-env.d.ts", ".next/types/**/*.ts", "**/*.ts", "**/*.tsx"],
"include": [
"next-env.d.ts",
".next/types/**/*.ts",
"**/*.ts",
"**/*.tsx",
".next/dev/types/**/*.ts"
],
"exclude": ["node_modules"]
}
1 change: 0 additions & 1 deletion mise.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[tools]
node = "24"
pnpm = "9"
Loading
Loading