From 4a54ce44b033929928f3db64114e124f14b4628b Mon Sep 17 00:00:00 2001 From: haylan Date: Wed, 14 Oct 2026 12:40:45 +0200 Subject: [PATCH] feat: manual dispatch release workflow --- .gitea/workflows/release.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflows/release.yml diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 0000000..1a1f3c3 --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,27 @@ +name: release + +# Manual release: publishes the latest CHANGELOG.md version to the Gitea npm registry, tags it and +# links the package to this repo. Idempotent - safe to re-run (repairs partial releases, skips +# already-published versions). Nightly handles upstream-sync releases automatically. +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 run check + - run: npm test + - run: npm run build + - run: node scripts/release.ts + env: + SERVER_URL: ${{ gitea.server_url }} + REPOSITORY: ${{ gitea.repository }} + SHA: ${{ gitea.sha }} + TOKEN: ${{ secrets.PACKAGE_TOKEN }}