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
10 changes: 5 additions & 5 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ jobs:
- uses: actions/checkout@v2
with:
ref: main
- name: merge main -> playground
- name: merge main -> docs
uses: devmasx/merge-branch@master
with:
github_token: ${{ github.token }}
type: now
from_branch: main
target_branch: playground
target_branch: docs
- uses: actions/checkout@v2
with:
ref: playground
ref: docs
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
Expand All @@ -41,8 +41,8 @@ jobs:
version: 7
run_install: false
- run: pnpm install
- run: pnpm run build:playground
- run: pnpm run build:doc
- uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: playground
branch: docs
commit_message: '[Automated] gen website'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"cz": "czg",
"dev": "vite",
"build": "vite build",
"build:playground": "cross-env BUILD_ENV=playground vite build",
"build:doc": "cross-env BUILD_ENV=doc vite build",
"preview": "vite preview",
"format": "prettier --write .",
"lint": "eslint --fix --ext .ts,.tsx .",
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default defineConfig({
plugins: [vue(), vueJsx(), UnoCSS()],
base: '/fomu/',
build: {
outDir: process.env.BUILD_ENV === 'playground' ? 'playground' : 'dist',
outDir: process.env.BUILD_ENV === 'doc' ? 'docs' : 'dist',
},
resolve: {
alias: {
Expand Down
Loading