fix(link): update hrefRules regex to correctly validate URLs #8
This file contains hidden or 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: Build and Deploy Docs | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v3 | |
- name: set Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20.x" | |
- name: Install pnpm | |
run: npm install -g pnpm | |
- name: Install dep | |
run: pnpm i | |
- name: build lib | |
run: pnpm run build:lib | |
- name: push to gh-pages branch | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: lib | |
publish_branch: release |