Skip to content

chore: match startManualRelease and onPushToMain release jobs #549

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

Merged
merged 4 commits into from
Feb 28, 2023

Conversation

randi274
Copy link
Contributor

What does this PR do?

The onPushToMain job, which creates a changelog and generates a github release, started failing recently, but the startManualRelease, which has almost the same set of steps, was still working. The two jobs are now much more closely aligned, and the onPushToMain should now be passing as well.

What issues does this PR fix or reference?

@W-12592699@
Closes forcedotcom/easywriter#138

@randi274 randi274 requested a review from gbockus-sf February 28, 2023 17:30
@randi274 randi274 requested a review from a team as a code owner February 28, 2023 17:30
- uses: actions/checkout@v3
with:
token: ${{ secrets.IDEE_GH_TOKEN }}
- uses: ./.github/actions/gitConfig
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The other job doesn't use this, so I removed the call to the gitConfig as well. I don't think anything else is using it, so I could remove this section too, or keep it in just in case.

Copy link
Contributor

Choose a reason for hiding this comment

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

better to be gone if it can be 👍

@@ -9,36 +9,32 @@ jobs:
uses: salesforcecli/github-workflows/.github/workflows/unitTest.yml@main
release:
runs-on: ubuntu-latest
container:
image: node:lts
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Based on some light research, I think this was our likely culprit.

Copy link
Contributor

Choose a reason for hiding this comment

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

good hunting

tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
- uses: actions/setup-node@v3
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The other job also includes the setup-node, so I added this.

body: ${{ steps.changelog.outputs.clean_changelog }}
- uses: actions/setup-node@v3
with:
node-version: '16.0.x'
Copy link
Contributor

Choose a reason for hiding this comment

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

node-version-file: '.nvmrc' FTW?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ohhhh yes, lemme do that for both

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done!

github-token: ${{ secrets.IDEE_GH_TOKEN }}
skip-version-file: true
output-file: false
tag-prefix: "v"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

From this section, I removed tag-prefix and fallback version (which was necessary for the first run, but isn't any longer).

@@ -27,7 +27,6 @@ jobs:
skip-on-empty: false
output-file: false
pre-commit: ./scripts/bump-lerna-version.js
tag-prefix: ''
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is being ignored in favor of the default value ("v"), so I removed it as well.

Copy link
Contributor

@gbockus-sf gbockus-sf left a comment

Choose a reason for hiding this comment

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

SHIPPIT

@randi274 randi274 merged commit 2ae7e08 into main Feb 28, 2023
@randi274 randi274 deleted the randi/fix-release-gha branch February 28, 2023 17:53
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