添加一个丐版的日志查看器, 支持使用gist分享 #306
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub Pages for PR | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: [16.x] | |
os: [ubuntu-latest] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
registry-url: https://registry.npmjs.org/ | |
- name: 📦 Install Dependencies | |
run: yarn | |
- name: 🧐 Check Code Types | |
run: yarn docs:tsc | |
- name: 🔧 Check Code Format | |
run: | | |
yarn docs:eslint && exit 0 | |
echo 'Error: 请执行 `pnpm run docs:format` 以格式化代码' 1>&2 | |
exit 1 | |
- name: 🌌 Build VitePress Docs | |
run: yarn docs:build |