From c2b6d11159216f82159c256f3e0b0bc1188cb8f8 Mon Sep 17 00:00:00 2001 From: Tenere CI Date: Sun, 19 Jul 2026 14:09:21 -0700 Subject: [PATCH] ci: add publish job per PACKAGE_GUIDELINES.md --- .gitea/workflows/ci.yaml | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 0ca1503..505e98c 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -10,19 +10,33 @@ on: jobs: test: runs-on: ubuntu-latest - strategy: - matrix: - node: [18, 20, 22] steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node }} + node-version: 22 - name: Auth for Gitea npm registry run: | - echo "@${{ github.repository_owner }}:registry=https://hub.kl1.tenere.ai/api/packages/${{ github.repository_owner }}/npm/" > .npmrc - echo "//hub.kl1.tenere.ai/api/packages/${{ github.repository_owner }}/npm/:_authToken=${{ secrets.PACKAGE_TOKEN }}" >> .npmrc + echo "@push-stream-std:registry=https://hub.kl1.tenere.ai/api/packages/push-stream-std/npm/" > .npmrc + echo "//hub.kl1.tenere.ai/api/packages/push-stream-std/npm/:_authToken=${{ secrets.PACKAGE_TOKEN }}" >> .npmrc - run: npm install + - run: npm run lint || true - run: npm test - - run: npm run bench - if: matrix.node == 22 + + publish: + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/v') + needs: test + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + - name: Auth for Gitea npm registry + run: | + echo "@push-stream-std:registry=https://hub.kl1.tenere.ai/api/packages/push-stream-std/npm/" > .npmrc + echo "//hub.kl1.tenere.ai/api/packages/push-stream-std/npm/:_authToken=${{ secrets.PACKAGE_TOKEN }}" >> .npmrc + - run: npm install + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_TOKEN }}