-
Notifications
You must be signed in to change notification settings - Fork 19
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
Release setup #13
Release setup #13
Conversation
Signed-off-by: Ali Ok <aliok@redhat.com>
Signed-off-by: Ali Ok <aliok@redhat.com>
Signed-off-by: Ali Ok <aliok@redhat.com>
@aliok: The label(s) 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. |
Signed-off-by: Ali Ok <aliok@redhat.com>
Signed-off-by: Ali Ok <aliok@redhat.com>
cc @pierDipi |
# When manually triggered | ||
workflow_dispatch: |
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.
Should this manual trigger have inputs ? Otherwise actions/checkout@v4
will checkout the default branch main
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.
You can select the branch in GitHub UI and then trigger the workflow. No need for any inputs. ...unless there's something I am missing
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.
Should be good now
|
||
- name: Print release name | ||
run: | | ||
echo "Release name: ${{ github.event.release.name }}" |
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.
I think this variable is not present when this is triggered on workflow_dispatch
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.
Good point
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.
Should be good now
- name: Run tests | ||
shell: bash | ||
working-directory: ./backstage | ||
run: | | ||
export PATH="./node_modules/.bin/:$PATH" | ||
yarn test |
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.
Running tests here seems a good additional check, however, I think we need to run the tests before Prow publishes a release in the Prow jobs
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.
Created #21
working-directory: ./backstage/plugins/knative-event-mesh-backend | ||
run: | | ||
export PATH="./node_modules/.bin/:$PATH" | ||
yarn version --new-version ${{ github.event.release.name }} --no-git-tag-version |
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.
I think this variable is not present when this is triggered on workflow_dispatch
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.
Should be good now
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.
Prow publishes nightly releases, should we do the same for the NPM package?
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.
We definitely can. I don't think I would bind the NPM publish to the Prow's schedule then. Just a periodic (or, whenever something is pushed) that lives on Github actions.
Created #15, thanks for the idea.
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.
For this workflow, I think it's important that we get notifications for success / failure similar to https://cloud-native.slack.com/archives/C04LY4Y3EHF/p1698337431944799
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.
Let me do that as an improvement later, ok?
Created #14
Signed-off-by: Ali Ok <aliok@redhat.com>
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.
/lgtm
/approve
Thanks for capturing improvements too!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aliok, pierDipi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Changes
knative
org (see my message on Slack for the name dispute I've filed), the NPM package is published toknative-extensions
NPM org that I own./kind
Fixes #
Release Note
Docs