Skip to content

Support trusted publishing for tag releases - #223

Merged
captbaritone merged 2 commits into
mainfrom
trusted-publishing-tags
Mar 31, 2026
Merged

Support trusted publishing for tag releases#223
captbaritone merged 2 commits into
mainfrom
trusted-publishing-tags

Conversation

@captbaritone

Copy link
Copy Markdown
Owner

Summary

  • Unifies the main-release job into a single publish job that handles both main branch and v* tag pushes
  • On main push: publishes dev version (0.0.0-main-<sha>) with --tag main
  • On v* tag push: publishes the version from package.json to latest
  • Removes the environment: CI field (not configured on npm's trusted publishing settings)

Test plan

  • Push to main still publishes dev version as before
  • Pushing a v* tag triggers the workflow and publishes to npm

Unify the publish job to handle both main branch (dev) and v* tag
(release) publishes using npm trusted publishing with OIDC.
@netlify

netlify Bot commented Mar 31, 2026

Copy link
Copy Markdown

Deploy Preview for grats ready!

Name Link
🔨 Latest commit 3df40e9
🔍 Latest deploy log https://app.netlify.com/projects/grats/deploys/69cc5a025ac1d000081f63ef
😎 Deploy Preview https://deploy-preview-223--grats.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@captbaritone
captbaritone merged commit 194d38e into main Mar 31, 2026
14 checks passed
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