feat: finder part #207
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: Docs | |
on: | |
push: | |
tags: | |
- v*.*.* | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
registry-url: https://registry.npmjs.org | |
- name: Determine npm cache directory | |
id: npm-cache | |
run: | | |
echo "::set-output name=dir::$(npm config get cache)" | |
- name: Restore npm cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.npm-cache.outputs.dir }} | |
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Npm Install | |
run: | | |
npm install pnpm -g | |
pnpm install | |
- name: Build docs # build npm | |
run: npm run build | |
- name: Pages # github pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: docs | |
# - name: Release # release | |
# uses: release-drafter/release-drafter@v5 | |
# with: | |
# version: ${{ steps.version.outputs.version }} | |
# publish: true | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} |