Skip to content

Fix versions with rollback for Lerna #110

Fix versions with rollback for Lerna

Fix versions with rollback for Lerna #110

Workflow file for this run

name: Generate Doc
on:
push:
branches: [main]
defaults:
run:
shell: bash
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
- name: Install dependencies
run: npm install
- name: Create Doc
run: npm run doc
- name: Push Doc
run: |
BRANCH=gh-pages
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git fetch origin $BRANCH
git reset --mixed origin/$BRANCH
git add -f docs
git commit -m "Updating documentation: $GITHUB_ACTOR"
git push origin HEAD:$BRANCH