Files
docs/.hanzo/workflows/release.yml
zeekay af79d739da Restore the forge workflows
The forge mirror of this repo (git.hanzo.ai/hanzoai/docs) reads
.hanzo/workflows and runs them: the last docs.hanzo.ai publish was
deploy.yml building 1d4202206c. With them gone, nothing publishes the site.

This reverts commit 891b8cc999.

Claude-Session: https://claude.ai/code/session_01HuMDfgFssPUptYUzgZ6Cp8
2026-09-24 14:54:01 -07:00

46 lines
1.0 KiB
YAML

name: Release
on:
push:
branches:
- main
- dev
workflow_dispatch:
concurrency: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: write
pull-requests: write
id-token: write
jobs:
release:
name: Release
runs-on: hanzo-docs-build-linux-amd64
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Install Dependencies
run: pnpm i --frozen-lockfile
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm run release
version: pnpm run version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_OPTIONS: '--max-old-space-size=8192'