Skip to content

Commit

Permalink
chore: config docs action & add peerDepOption
Browse files Browse the repository at this point in the history
  • Loading branch information
vikiboss committed Apr 15, 2024
1 parent 9f948d7 commit b2704a3
Show file tree
Hide file tree
Showing 12 changed files with 730 additions and 276 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Deploy docs

on:
push:
branches: ['main']
workflow_dispatch:

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

concurrency:
group: 'pages'
cancel-in-progress: false

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'

- name: Use pnpm
uses: pnpm/action-setup@v3
with:
version: 8

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Built docs
run: pnpm run docs:build

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './docs/.vitepress/dist'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
base: '/reactive',
title: 'Reactive',
description: 'Proxy-driven state for React & vanilla JS.',
themeConfig: {
Expand Down
8 changes: 4 additions & 4 deletions examples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"react-hot-toast": "^2.4.1"
},
"devDependencies": {
"@types/react": "^18.2.61",
"@types/react-dom": "^18.2.19",
"@types/react": "^18.2.78",
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.2.1",
"typescript": "^5.3.3",
"vite": "^4.5.2"
"typescript": "^5.4.5",
"vite": "^4.5.3"
}
}
53 changes: 24 additions & 29 deletions examples/basic/pnpm-lock.yaml

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

8 changes: 4 additions & 4 deletions examples/example-for-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.2.61",
"@types/react-dom": "^18.2.19",
"@types/react": "^18.2.78",
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.2.1",
"typescript": "^5.3.3",
"vite": "^4.5.2"
"typescript": "^5.4.5",
"vite": "^4.5.3"
}
}
53 changes: 24 additions & 29 deletions examples/example-for-test/pnpm-lock.yaml

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

8 changes: 4 additions & 4 deletions examples/full-featured/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.2.61",
"@types/react-dom": "^18.2.19",
"@types/react": "^18.2.78",
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.2.1",
"typescript": "^5.3.3",
"vite": "^4.5.2"
"typescript": "^5.4.5",
"vite": "^4.5.3"
}
}
Loading

0 comments on commit b2704a3

Please sign in to comment.