Skip to content

Conversation

@ddbeck
Copy link
Collaborator

@ddbeck ddbeck commented Nov 26, 2025

GitHub and npm are moving to a package publishing model that uses OIDC instead of npm tokens. If we switch to this, we would not need to periodically reissue tokens (as described in our publishing docs). This was inspired by me having to reissue tokens today.

This PR migrates the compute-baseline and web-features next-tagged releases to this publishing workflow. If this works well, we can refactor the latest-tagged publishing workflows to use the same method ((un)fortunately, each package on npm may only have one blessed workflow, so we'll have to consolidate the publishing workflows).

Upon merging, the packages need configuration in npmjs.com (see this section of the npm docs and this area in the npm UI, if you have access). If you're not ready to do this yourself, then please approve and leave unmerged. Thank you!

@github-actions github-actions bot added the tools and infrastructure Project internal tooling, such as linters, GitHub Actions, or repo settings label Nov 26, 2025
@ddbeck ddbeck force-pushed the trusted-publishing branch from c651ce1 to 6b15303 Compare November 26, 2025 16:32
Copy link
Collaborator Author

@ddbeck ddbeck left a comment

Choose a reason for hiding this comment

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

Self-reviewing to provide some clarity to would-be reviewers.

Comment on lines +10 to +11
permissions: {}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The permissions vary between jobs here, so this explicitly unsets them for the workflow.

Comment on lines -70 to -74
- if: ${{ env.NODE_AUTH_TOKEN }}
run: npm publish --tag ${{ env.dist_tag }}
- run: npm publish --tag ${{ env.dist_tag }}
working-directory: ${{ env.package_dir }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The token is no longer required (and the if condition was superfluous anyway, in light of the if: github.repository … condition for the entire job).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tools and infrastructure Project internal tooling, such as linters, GitHub Actions, or repo settings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant