Skip to content

Conversation

@SethFalco
Copy link
Member

Defines a GitHub action to publish releases from GitHub CI using the npm trusted publishers method.

I've tested this on a smaller project I maintain (jsonresume/jsonresume-theme-class) and everything went great, so I'm adopting this in svg/svgo as well.

This makes the process of releasing a little less stressful, and significantly reduces the likelihood for human error, like releasing versions under the wrong dist-tag. 😓

The only difference between this workflow and other ones I've defined is that for SVGO, I use jq to check if the version name includes -rc. which indicates it's a release candidate. If so, we use the rc dist-tag.

@SethFalco SethFalco merged commit 9d9afa3 into svg:main Oct 25, 2025
14 checks passed
@SethFalco SethFalco deleted the publish-action branch October 25, 2025 21:11
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