Files
fastcrw-opencode-websearch/.gitea/workflows/release.yml
T
2026-10-03 19:29:40 +02:00

21 lines
527 B
YAML

name: release
on: workflow_dispatch
jobs:
release:
if: gitea.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- run: npm ci
- run: npm test
- run: npm run build
- run: node scripts/release.ts
env:
REGISTRY_URL: ${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/npm
TOKEN: ${{ secrets.PACKAGE_TOKEN || secrets.GITHUB_TOKEN }}