Skip to content

chore: release main #122

chore: release main

chore: release main #122

on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
pull-requests: write
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
command: manifest
monorepo-tags: true
- uses: actions/setup-node@v2
if: ${{ steps.release.outputs.releases_created }}
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
- name: Checkout repository
if: ${{ steps.release.outputs.releases_created }}
uses: actions/checkout@v4
- name: Build
if: ${{ steps.release.outputs.releases_created }}
run: yarn && yarn run build
- name: Publish project
if: ${{ steps.release.outputs.releases_created }}
run: yarn run lerna:publish from-package --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install docs dependencies
if: ${{ steps.release.outputs.releases_created }}
run: cd docs && yarn install
- name: Build docs
if: ${{ steps.release.outputs.releases_created }}
env:
NODE_OPTIONS: "--max-old-space-size=8192"
run: yarn docs
- name: Deploy docs 🚀
if: ${{ steps.release.outputs.releases_created }}
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs/dist # The folder the action should deploy.