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

Refactors the release workflow #720

Merged
merged 1 commit into from
May 13, 2022

Conversation

popematt
Copy link
Contributor

Issue #, if available:

N/A

Description of changes:

Refactors the release workflow to have separate jobs that can be independently retried. Also, the workflow now opens a pull request instead of pushing directly to the gh-pages branch.

You can view a test of this workflow that I ran on a separate branch in my fork.

I am creating this PR from a different branch than I ran the test to ensure that the v125.1.0 tag does not get merged into amzn/ion-js somehow by mistake.

The .npmignore change looks like a lot, but it is just adding .github, .nyc_output/, .prettierignore, test, test-driver, and tslint.json, and then I alphabetized the list.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@popematt popematt requested a review from jobarr-amzn May 12, 2022 00:28
Copy link
Contributor

@cheqianh cheqianh left a comment

Choose a reason for hiding this comment

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

Looks good to me!

with:
name: docs
path: docs/
publish-to-github:
Copy link
Contributor

@cheqianh cheqianh May 12, 2022

Choose a reason for hiding this comment

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

Ah nice we don't have to manually upload artifacts to GitHub release, I should apply it to ion-hive-serde release in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You authenticate by putting GITHUB_TOKEN in the env of the run step where you are using the gh CLI.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks, found it.

@popematt popematt merged commit 30a5a7f into amazon-ion:master May 13, 2022
@popematt popematt deleted the gha-release-refactor branch May 13, 2022 22:14
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.

2 participants