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
Package publish workflow #756
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: laudibert The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I'm not sure that I'm in favor of automatic publishing of npms on push. I think publishing should be an intentional act. I guess you could argue that rev-ing the version in Regardless, it also doesn't match up with the existing way that we use the version in Additionally, we need to run a build (e.g. compile typescript to javascript) before we publish, I don't think your current workflow does this. If you are open to it, can you refactor this as follows:
|
Yes ok, understood. Yes I think that step 3 is important. I honestly got motivated to do this PR because I am waiting for my merged PR to be published on a version that I can use. Therefore I do think it is important to have some way to give a alpha/release candidate/snapshot version. I'll look into it in the next few days. |
In the meantime, would it be useful for me to cut a new version to pick up your PR? (which PR is it) |
That would be very nice, thank you. It's PR #753 |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This is a proposition to add automatic package publish on
master
as well as a publish dry run on PRs.I modified the validation workflow to add a follow-up job on it that will publish the package. It will fail if the version given has already been published. It will also only do a dry un on PRs.
The job requires
NPM_TOKEN
to be added as a secret on this repository.I am aware that this may be up to debate, will be happy to do so.