Skip to content

build: use @rollup/plugin-terser #293

build: use @rollup/plugin-terser

build: use @rollup/plugin-terser #293

Workflow file for this run

name: Docs
on:
push:
branches: [main]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
- name: Setup user
run: |
git config --global user.email actions@users.noreply.github.com
git config --global user.name "Action"
- name: Build docs
run: |
cd docs
yarn install
yarn docs:build
cd .vitepress/dist
git init
git add -A
git commit -m 'deploy'
- name: Deploy docs
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: 'docs'
force: true
directory: './docs/.vitepress/dist'