-
Notifications
You must be signed in to change notification settings - Fork 9.7k
misc: set up npm trusted publishing #16944
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lusayaa
wants to merge
18
commits into
main
Choose a base branch
from
npm-trusted-publishing
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+78
−45
Open
Changes from 4 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
604b601
chore: set up npm trusted publishing
ad8a735
chore: upgrade npm in publish workflow
735b488
chore: add explicit flags to npm publish
62ec0b4
test dryrun
lusayaa b246f7e
chore: revert publish.yml and add release.yml with dry-run
265aefe
Merge branch 'main' into npm-trusted-publishing
3f9075b
chore: resolve conflict in publish.yml by reverting to main state
8f349a4
add dry run flag
35fe30a
chore: add permissions to test job in release.yml
4db85ae
misc: rename workflow files to address review comments
85a26bf
feat: trigger publish on tag push and add build-all step
304a268
rename release.yml to publish.yml, move publish.yml to publish-nightl…
5e0a57d
feat: add workflow_dispatch trigger to publish.yml
7ff30c3
chore: move permissions to top level in publish-nightly.yml
c774ac0
fix comment
b289931
test: add temporary pull_request trigger to publish.yml
25cb731
npm pkg fix
82cf298
remove pr trigger and dry run flag
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the goal here? this job is a cron for nightly publishing but we disabled it awhile ago. for actual releases we don't use GHA
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
goal is to follow https://docs.npmjs.com/trusted-publishers. i think Paul already linked the GitHub publish.yml in npm to this repo. so it's a matter of linking it up on the GitHub side of things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, let's actually rename this file to publish-nightly.yml
And then we'll want to create a brand new file for publish. That is a combination of this file and whatever my skill thinks we should do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh i see you introduced a new release.yml.
yahhhhh if you're okay with it.. renaming this old file to publish-nightly and keeping the new one as publish.yml is slightly better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea that's fine. renaming it. including build-all bc it was in manual instructions...overkill?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no in fact that's probably required for this to work. probably? dunno.