Skip to content
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

Publish package to NPM #1

Open
Jonas-Beck opened this issue Jan 7, 2025 · 9 comments
Open

Publish package to NPM #1

Jonas-Beck opened this issue Jan 7, 2025 · 9 comments
Assignees

Comments

@Jonas-Beck
Copy link
Contributor

Set up a GitHub Actions pipeline to publish packages to NPM.

@fjogeleit, do you know if Kyverno already has an NPM organization, and if there are any standards we should follow regarding how we release new packages?

Previously, we have been using lerna publish from-package, which would release a new package version if the package.json version is greater than the currently published version.

@fjogeleit
Copy link
Member

Hey currently we do Not have any npm package nor organization.

@JimBugwadia who should create the Organization in NPM?

@Jonas-Beck
Copy link
Contributor Author

@fjogeleit, @Jaxwood, and I can also create the Organization in NPM and then transfer ownership to you, or to whoever should be the owner.

@fjogeleit
Copy link
Member

fjogeleit commented Jan 13, 2025

Okay, lets to that for now

@Jonas-Beck
Copy link
Contributor Author

@fjogeleit i have invited you to the NPM Organization, we need to use an access token in our Github Actions and would like to store that in a secret in the repository.

We need that to be able to publish our package to NPM, currently we do not have access to add secrets - do you know who can assist us ?

@fjogeleit
Copy link
Member

fjogeleit commented Jan 14, 2025

Thanks, joined the organization.

@realshuting @eddycharly can one of you assist here?

@realshuting
Copy link
Member

@fjogeleit i have invited you to the NPM Organization, we need to use an access token in our Github Actions and would like to store that in a secret in the repository.

We need that to be able to publish our package to NPM, currently we do not have access to add secrets - do you know who can assist us ?

Hi @Jonas-Beck - what permissions do you need?

@Jaxwood
Copy link
Collaborator

Jaxwood commented Jan 14, 2025

@fjogeleit i have invited you to the NPM Organization, we need to use an access token in our Github Actions and would like to store that in a secret in the repository.
We need that to be able to publish our package to NPM, currently we do not have access to add secrets - do you know who can assist us ?

Hi @Jonas-Beck - what permissions do you need?

@realshuting Me and @Jonas-Beck just had a look into the permissions. From the Github docs it looks like you will have to be admin on the repository to manage secrets.

I'm not sure if you are OK with this?

@fjogeleit
Copy link
Member

fjogeleit commented Jan 14, 2025

Not sure if you are talking about the same.

@realshuting - @Jaxwood needs to be repo admin to add secrets for the github workflow. Can you grant him the repository permissions for his github user?

@Jaxwood - @realshuting asked about the permissions your token needs to fulfill your GitHub action for publishing the code to NPM

@realshuting
Copy link
Member

Not sure if you are talking about the same.

@realshuting - @Jaxwood needs to be repo admin to add secrets for the github workflow. Can you grant him the repository permissions for his github user?

@Jaxwood - @realshuting asked about the permissions your token needs to fulfill your GitHub action for publishing the code to NPM

I have added you @Jaxwood as the repo admin, and configured a PUBLISH_TOKEN token for you. Please let me know if the token doesn't work for you, thanks.

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

No branches or pull requests

4 participants