Skip to content

ci: use GH_PACKAGES_TOKEN fallback for release/snapshot publish#15

Open
danbot315 wants to merge 6 commits intomainfrom
feat/pr-snapshot-publish-marker
Open

ci: use GH_PACKAGES_TOKEN fallback for release/snapshot publish#15
danbot315 wants to merge 6 commits intomainfrom
feat/pr-snapshot-publish-marker

Conversation

@danbot315
Copy link
Copy Markdown
Contributor

Follow-up hardening for publish workflows.

Changes

  • release.yml: use GH_PACKAGES_TOKEN (fallback to GITHUB_TOKEN) for:
    • changeset version metadata
    • npm auth setup
    • changeset publish
  • ci.yml snapshot publish path: same token strategy for versioning and publish auth.

Why

Main release run failed with package publish permission errors using default token. This enables org-level package publishing via a dedicated secret when configured.

Operational note

Set repository secret:

  • GH_PACKAGES_TOKEN with package publish permissions for npm.pkg.github.com

Workflow still falls back to GITHUB_TOKEN if the custom secret is absent.

@danbot315 danbot315 requested a review from azweb76 March 2, 2026 05:32
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.

1 participant