mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-28 07:09:50 +00:00
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 building1d4202206c. With them gone, nothing publishes the site. This reverts commit891b8cc999. Claude-Session: https://claude.ai/code/session_01HuMDfgFssPUptYUzgZ6Cp8
46 lines
1.0 KiB
YAML
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'
|