Skip to content

chore(release): bump version to 0.1.0-alpha.294 #1703

chore(release): bump version to 0.1.0-alpha.294

chore(release): bump version to 0.1.0-alpha.294 #1703

name: Publish review docs
on:
push:
branches-ignore:
- main
permissions:
contents: read
env:
TARGET_PATH: "/docs/${{ github.ref_name }}"
NEXT_BASE_PATH: "/flow-previews/docs/${{ github.ref_name }}"
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages-preview
url: https://mittwald.github.io${{ env.NEXT_BASE_PATH }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
PUBLISH_PAT: ${{ secrets.PUBLISH_PAT }}
GH_TOKEN: ${{ secrets.PUBLISH_PAT }}
steps:
- name: Checkout ⬇️
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PUBLISH_PAT }}
- name: Setup Node 🎛️
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
registry-url: "https://registry.npmjs.org"
- name: Git Identity 🪪
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- name: Yarn Install 📦️
run: yarn install --immutable
- 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 🔨
run: yarn docs build
- name: Upload files to GitHub Pages 🚀
uses: maaaathis/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.PUBLISH_PAT }}
with:
source-directory: packages/docs/out
destination-github-username: mittwald
destination-repository-name: flow-previews
target-branch: main
target-directory: "${{ env.TARGET_PATH }}"
- name: Output the URL
run: echo "${{ job.environment.url }}"