Skip to content

Conversation

@vonovak
Copy link
Contributor

@vonovak vonovak commented Nov 25, 2025

Enable npm publishing with provenance from GH actions instead of using an npm token.

Requires to perform these steps: https://docs.npmjs.com/trusted-publishers#for-github-actions

@vonovak vonovak requested a review from a team as a code owner November 25, 2025 09:14
@vonovak vonovak requested review from douglowder and removed request for a team November 25, 2025 09:14
if: ${{ steps.release.outputs.release_created }}
- run: yarn --immutable
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
Copy link
Member

Choose a reason for hiding this comment

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

Do we not want to use yarn npm publish? I know it has a --provenance flag.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only npm supports trusted publishing via GH actions I think, unless yarn has caught up.

Copy link
Member

Choose a reason for hiding this comment

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

@douglowder douglowder removed their request for review December 4, 2025 17:58
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