Skip to content

chore: rename trusted publish workflow to release#6

Merged
Nsttt merged 3 commits intomainfrom
codex/rename-release-workflow
Apr 1, 2026
Merged

chore: rename trusted publish workflow to release#6
Nsttt merged 3 commits intomainfrom
codex/rename-release-workflow

Conversation

@Nsttt
Copy link
Copy Markdown
Member

@Nsttt Nsttt commented Apr 1, 2026

What changed

  • moved the trusted publish workflow to .github/workflows/release.yml
  • removed the old .github/workflows/publish-on-release.yml workflow
  • removed the leftover .github/workflows/manual-publish.yml workflow
  • updated release docs and README to point at the single trusted-publisher workflow filename

Why

npm trusted publishing validates the exact workflow filename, not the workflow name: value. Releases were failing because npm trust was expected to point at release.yml, while the OIDC publish job lived in publish-on-release.yml.

Impact

  • npm trusted publisher can now be configured against release.yml
  • release docs match the actual workflow path
  • there is a single release workflow path to maintain

Validation

  • ~/.local/bin/docs-list
  • ruby -e 'require "yaml"; YAML.load_file(".github/workflows/release.yml"); puts "workflow yaml ok"'
  • git diff --check

@Nsttt Nsttt changed the title [codex] Rename trusted publish workflow to release chore: rename trusted publish workflow to release Apr 1, 2026
@Nsttt Nsttt self-assigned this Apr 1, 2026
@Nsttt Nsttt marked this pull request as ready for review April 1, 2026 12:28
Copilot AI review requested due to automatic review settings April 1, 2026 12:28
@Nsttt Nsttt merged commit bcd3842 into main Apr 1, 2026
2 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Renames and reorganizes the npm trusted-publishing GitHub Actions workflows so npm can validate against the expected workflow filename (release.yml), and updates docs accordingly.

Changes:

  • Moves the trusted publish workflow to .github/workflows/release.yml and removes the old .github/workflows/publish-on-release.yml.
  • Adds a separate .github/workflows/manual-publish.yml to retain the prior manual publish flow.
  • Updates README and releasing docs to reference the new workflow name/path.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
README.md Updates release flow docs to reference the Release workflow name.
docs/RELEASING.md Updates trusted publishing workflow path references to .github/workflows/release.yml.
.github/workflows/release.yml Becomes the canonical release+publish workflow (release trigger + manual dispatch).
.github/workflows/manual-publish.yml Introduces a legacy/manual publish workflow under a new filename.
.github/workflows/publish-on-release.yml Removes the old trusted publish workflow file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

id-token: write

concurrency:
group: publish-${{ github.workflow }}-${{ github.ref_name || github.run_id }}
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The concurrency group is based on github.ref_name, which for workflow_dispatch reflects the branch the workflow is run on (UI selection), not necessarily the branch input that is actually checked out and published. If someone dispatches the workflow from main but sets branch to another ref, different publishes can be incorrectly serialized (or collide) under the same concurrency key. Consider keying concurrency off the same source ref you checkout (e.g., github.event.release.tag_name || github.event.inputs.branch || github.ref_name).

Suggested change
group: publish-${{ github.workflow }}-${{ github.ref_name || github.run_id }}
group: publish-${{ github.workflow }}-${{ github.event.release.tag_name || github.event.inputs.branch || github.ref_name || github.run_id }}

Copilot uses AI. Check for mistakes.
if: github.event_name == 'workflow_dispatch' && github.event.inputs.version == 'next'
run: |
SAFE_BRANCH=$(echo "${{ github.event.inputs.branch }}" | sed 's/[^a-zA-Z0-9-]/-/g' | tr '[:upper:]' '[:lower:]')
npx changeset version --snapshot "$SAFE_BRANCH"
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generate preview version uses npx changeset ..., which can download and run a different Changesets version than the one pinned in the repo if resolution falls back to the network. Since this repo already uses pnpm + a pinned @changesets/cli, prefer pnpm exec changeset version --snapshot ... (or pnpm changeset ...) to keep the workflow deterministic.

Suggested change
npx changeset version --snapshot "$SAFE_BRANCH"
pnpm exec changeset version --snapshot "$SAFE_BRANCH"

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants