From b43a9f1ada29461c031bdd52f1bd83372d1fe76b Mon Sep 17 00:00:00 2001 From: Marie Lucca <40550942+francinelucca@users.noreply.github.com> Date: Mon, 3 Aug 2026 19:13:44 -0400 Subject: [PATCH 1/2] Allow same version in npm version command --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 311092e..2a14dc6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,7 +20,7 @@ jobs: cache: npm - run: npm ci - run: npm test - - run: npm version ${TAG_NAME} --git-tag-version=false + - run: npm version ${TAG_NAME} --git-tag-version=false --allow-same-version env: TAG_NAME: ${{ github.event.release.tag_name }} - run: npm --ignore-scripts publish --provenance From 80420ada11cc69af4435af6748c0289f05b91c33 Mon Sep 17 00:00:00 2001 From: Marie Lucca Date: Mon, 3 Aug 2026 19:18:17 -0400 Subject: [PATCH 2/2] Support manual publishing by tag Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .github/workflows/publish.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2a14dc6..198d9b6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,6 +3,12 @@ name: Publish on: release: types: [created] + workflow_dispatch: + inputs: + tag: + description: Tag to publish + required: true + type: string permissions: contents: read @@ -12,7 +18,15 @@ jobs: publish-npm: runs-on: ubuntu-latest steps: + - name: Validate tag + if: github.event_name == 'workflow_dispatch' + run: gh api --silent "repos/${GITHUB_REPOSITORY}/git/ref/tags/${TAG_NAME}" + env: + GH_TOKEN: ${{ github.token }} + TAG_NAME: ${{ inputs.tag }} - uses: actions/checkout@v3 + with: + ref: ${{ github.event.release.tag_name || inputs.tag }} - uses: actions/setup-node@v3 with: node-version: 18 @@ -22,5 +36,5 @@ jobs: - run: npm test - run: npm version ${TAG_NAME} --git-tag-version=false --allow-same-version env: - TAG_NAME: ${{ github.event.release.tag_name }} + TAG_NAME: ${{ github.event.release.tag_name || inputs.tag }} - run: npm --ignore-scripts publish --provenance