Files
mizan/.gitea/workflows/publish-react.yaml
Ryth Azhur ae684a36cb Restore approved state (tree of 4effcc7 "Added LICENSE")
Roll the working tree back to the last approved shape, before the post-LICENSE span that false-greened the AFI parity matrix with symbol-presence probes and smuggled an unauthorized SQLAlchemy dependency into FastAPI's Shapes binding.

Forward commit, not a history rewrite — the six commits since 4effcc7 stay in the log as the record of what happened.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 14:59:53 -04:00

37 lines
841 B
YAML

name: Publish React package to npm
on:
push:
tags:
- 'react/v*'
jobs:
publish:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontends/mizan-react
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Configure Gitea npm registry
env:
REGISTRY_URL: ${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/npm/
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
run: |
npm config set @rythazhur:registry "${REGISTRY_URL}"
npm config set -- "${REGISTRY_URL#https:}:_authToken" "${PUBLISH_TOKEN}"
- name: Publish
run: npm publish