Skip to content

[add] Read Me document & API Web-site configuration #1

[add] Read Me document & API Web-site configuration

[add] Read Me document & API Web-site configuration #1

Workflow file for this run

name: CI & CD
on:
push:
tags:
- v*
jobs:
Build-and-Publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 9
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org
cache: pnpm
- name: Install Dependencies
run: pnpm i --frozen-lockfile
- name: Build & Publish
run: |
echo GITHUB_PAT=${{ secrets.PAT }} > .env
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Update document
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./docs
personal_token: ${{ secrets.GITHUB_TOKEN }}
force_orphan: true