From 96934079125a1d4e0f01e1df7af5b4a5d0c4a2aa Mon Sep 17 00:00:00 2001 From: root Date: Mon, 25 May 2026 04:07:10 +0000 Subject: [PATCH] ci: add Gitea runner E2E publish workflow --- .gitea/workflows/runner-e2e-publish.yml | 93 +++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 .gitea/workflows/runner-e2e-publish.yml diff --git a/.gitea/workflows/runner-e2e-publish.yml b/.gitea/workflows/runner-e2e-publish.yml new file mode 100644 index 00000000..54a932b9 --- /dev/null +++ b/.gitea/workflows/runner-e2e-publish.yml @@ -0,0 +1,93 @@ +name: Gitea Runner E2E — publish + integrity check + +on: + workflow_dispatch: + inputs: + version: + description: Test version to publish + required: true + default: 0.0.1-e2e.1 + push: + branches: [runner/gitea-e2e] + +concurrency: + group: runner-e2e-publish-${{ github.ref }} + cancel-in-progress: false + +jobs: + publish: + runs-on: [ubuntu-latest, bytelyst, hostinger] + timeout-minutes: 15 + container: + image: node:20-bookworm + options: -v /home/gitea-runner/.gitea_npm_token:/run/secrets/gitea_npm_token:ro + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install pnpm + run: | + npm install -g pnpm@9.12.0 + pnpm --version + + - name: Set test version + working-directory: packages/_runner-e2e-test + run: | + VERSION="${{ github.event.inputs.version }}" + if [ -z "$VERSION" ]; then VERSION="0.0.1-e2e.1"; fi + echo "TEST_VERSION=$VERSION" >> "$GITHUB_ENV" + npm version "$VERSION" --no-git-tag-version --allow-same-version + node -p "require('./package.json').version" + + - name: Configure registry .npmrc + working-directory: packages/_runner-e2e-test + run: | + TOKEN=$(tr -d '\n' < /run/secrets/gitea_npm_token) + cat > .npmrc < .npmrc < package.json <