Skip to content

Conversation

@aramikm
Copy link
Collaborator

@aramikm aramikm commented Jan 9, 2026

@aramikm aramikm requested a review from demisx as a code owner January 9, 2026 20:43
- main
# Set default permissions as restrictive
permissions:
id-token: write # Required for OIDC
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@JoeCap08055 Is the the only change needed in here or there are other things I'm missing?

Copy link
Collaborator

Choose a reason for hiding this comment

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

If there are any other workflows that publish those will fail, assuming this is the file that is authorized on npm.
See https://github.com/ProjectLibertyLabs/dev-lore-playbook/blob/main/Releases/NpmPackagesAndPublishing.md for more detail.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@shannonwells per my notes in #2663 , the example in the lore playbook cited above won't work--that's a shared action, what we need is a shared workflow. If we manage to come up with an appropriate shared workflow in this PR, we should update the lore playbook with the proper example.

Copy link
Collaborator

@demisx demisx left a comment

Choose a reason for hiding this comment

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

👍🏻

@JoeCap08055
Copy link
Collaborator

I don't think this addresses the issue.
While this change theoretically addresses a shortcoming of this individual workflow, the larger issue is that this workflow is not the one that is authorized to publish to NPM--that workflow is release.yml. Only one workflow per repo can be authorized to publish to NPM.

So the correct solution to the problem is to define a shared workflow (which is not the same as a shared action) that handles all NPM publishing in this repo. I've described what needs to be done in the issue #2663 .

packages: read

jobs:
publish-js-api-augment-rc:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Open to arguments against this but I don't think we need to publish these on merge. We can always use an rc release if needed any of these packages and I think simplifying this makes more sense compared to creating a shared workflow which requires more effort without any tangible reward.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm fine with removing these steps; we can always add them back at some point when there's time to revisit the shared publishing workflow.

@JoeCap08055 JoeCap08055 merged commit 4e5b23e into main Jan 12, 2026
33 checks passed
@JoeCap08055 JoeCap08055 deleted the use_id_tokens branch January 12, 2026 21:24
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.

5 participants