fix: use-interval no clear func #824
Workflow file for this run
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: Node CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 7.9.5 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
cache: 'pnpm' | |
- uses: actions/cache@v3 # cache pnpm packages | |
id: pnpm-cache | |
with: | |
path: | | |
**/node_modules | |
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm- | |
- name: Pnpm install | |
if: steps.pnpm-cache.outputs.cache-hit != 'true' | |
run: pnpm install | |
- name: Unit Test | |
run: | | |
pnpm run test | |
- name: Build Lib | |
run: | | |
pnpm build | |
- name: Build Docs plugin | |
run: | | |
cd packages/vitepress/vitepress-demo-block | |
pnpm run build | |
- name: Build Docs | |
run: | | |
cd packages/hooks | |
pnpm run initial | |
pnpm run docs:build | |
env: | |
CI: true |