From 2d0eb5f1d97c763c466573abcf3b5bf27a8b224a Mon Sep 17 00:00:00 2001 From: Chris Hagglund Date: Mon, 6 Jul 2026 12:13:41 -0600 Subject: [PATCH] allow a manual run of the release for debugging stuff with npm and tokens --- .github/workflows/release.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 896a914b..e32ddfc6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,12 @@ name: Continuous Delivery on: release: types: [published] + workflow_dispatch: + inputs: + version: + description: 'Version to release, matching the release tag (e.g., v1.2.3)' + required: true + type: string permissions: contents: read @@ -18,10 +24,13 @@ jobs: with: node-version: "22" registry-url: "https://registry.npmjs.org" + # RELEASE_VERSION is the v-prefixed tag (e.g. v3.0.3) on a release, or the + # manual input on dispatch. The leading "v" lands in package.json but npm + # strips it on publish, so the published version is clean (e.g. 3.0.3). - name: Bump version to release run: sed -i "s/v0.0.0/$RELEASE_VERSION/" ./package.json env: - RELEASE_VERSION: ${{ github.ref_name }} + RELEASE_VERSION: ${{ github.event_name == 'workflow_dispatch' && inputs.version || github.ref_name }} - name: Install dependencies required to build package run: npm ci - name: Build package