From 12613c222555beca8b104ca0ff5d798ae762c81d Mon Sep 17 00:00:00 2001 From: Marie Lucca Date: Mon, 3 Aug 2026 19:23:07 -0400 Subject: [PATCH 1/2] Support manual package publishing Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: fb88c8a1-1744-4092-ac87-8a7d7be0357a --- .github/workflows/publish.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3038abd..b787ae8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,15 +3,30 @@ name: Publish on: release: types: [created] + workflow_dispatch: + inputs: + tag_version: + description: Existing tag version to publish + required: true + type: string jobs: publish-npm: runs-on: ubuntu-latest + env: + TAG_NAME: ${{ github.event_name == 'workflow_dispatch' && inputs.tag_version || github.event.release.tag_name }} permissions: contents: read id-token: write steps: + - name: Validate tag + if: github.event_name == 'workflow_dispatch' + env: + GH_TOKEN: ${{ github.token }} + run: gh api "repos/${GITHUB_REPOSITORY}/git/ref/tags/${TAG_NAME}" --silent - uses: actions/checkout@v5 + with: + ref: ${{ env.TAG_NAME }} - uses: actions/setup-node@v5 with: node-version: 24 @@ -19,7 +34,5 @@ jobs: cache: npm - run: npm ci - run: npm test - - run: npm version ${TAG_NAME} --git-tag-version=false - env: - TAG_NAME: ${{ github.event.release.tag_name }} + - run: npm version "${TAG_NAME}" --git-tag-version=false --allow-same-version - run: npm --ignore-scripts publish --provenance From bc4a78d84ee08c4d32ad6fcbbd3c8519e5cb1413 Mon Sep 17 00:00:00 2001 From: Marie Lucca <40550942+francinelucca@users.noreply.github.com> Date: Mon, 3 Aug 2026 19:59:17 -0400 Subject: [PATCH 2/2] Update npm publish command to include public access --- .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 b787ae8..11c9141 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -35,4 +35,4 @@ jobs: - run: npm ci - run: npm test - run: npm version "${TAG_NAME}" --git-tag-version=false --allow-same-version - - run: npm --ignore-scripts publish --provenance + - run: npm --ignore-scripts publish --provenance --access public