Skip to content

ci: update npm-publish config #288

ci: update npm-publish config

ci: update npm-publish config #288

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 14
uses: actions/setup-node@v3
with:
node-version: 14.x
- name: Setup user
run: |
git config --global user.email [email protected]
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'