Skip to content

Commit

Permalink
chore: add netlify deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
chizukicn committed Nov 9, 2023
1 parent 73c0cdf commit bc009cf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[build.environment]
NETLIFY_USE_PNPM = "true"
NODE_VERSION = "16"

[build]
publish = "docs/.vitepress/dist"
command = "pnpm install && pnpm -w run deploy"

[functions]
node_bundler = "esbuild"
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"typecheck": "tsc --noEmit --skipLibCheck",
"dev": "vite playground",
"play": "vite playground",
"build:play": "vite build playground",
"bump": "bumpp package.json packages/*/package.json --commit --push --tag",
"pub": "pnpm build && pnpm -r publish --access public --no-git-checks --registry https://registry.npmjs.org/",
"preinstall": "npx only-allow pnpm",
Expand All @@ -32,7 +33,8 @@
"up": "taze -r major",
"regit": "git fetch --all && git reset --hard origin/main && git pull && git remote prune origin",
"docs": "pnpm -C docs dev",
"build:docs": "pnpm -C docs build"
"build:docs": "pnpm -C docs build",
"deploy": "pnpm build && pnpm build:docs"
},
"devDependencies": {
"@curev/eslint-config": "^0.2.1",
Expand Down

0 comments on commit bc009cf

Please sign in to comment.