chore(release): bump version to 0.2.0-alpha.46 #1162
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: Publish docs to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ⬇️ | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 10 | |
- name: Setup Node 🎛️ | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
registry-url: "https://registry.npmjs.org" | |
- name: pnpm Install 📦️ | |
run: pnpm install --frozen-lockfile | |
- name: Setup NX 1/2 🎛️ | |
uses: nrwl/nx-set-shas@v4 | |
- name: Setup NX 2/2 🎛 | |
if: github.ref != 'refs/heads/main' | |
run: git branch --track main origin/main | |
- name: Build 🔨 | |
env: | |
NEXT_BASE_PATH: "/flow" | |
run: pnpm nx build docs | |
- name: Configure GitHub pages ⚙️ | |
uses: actions/configure-pages@v5 | |
with: | |
static_site_generator: next | |
- name: Upload GitHub Pages artifact ⬆️ | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: apps/docs/out | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Publish to GitHub Pages 🚀 | |
id: deployment | |
uses: actions/deploy-pages@v4 |