-
Notifications
You must be signed in to change notification settings - Fork 48
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
Conversation
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.IDEE_GH_TOKEN }} | ||
- uses: ./.github/actions/gitConfig |
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.
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.
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.
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 |
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.
Based on some light research, I think this was our likely culprit.
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 hunting
tag_name: ${{ steps.changelog.outputs.tag }} | ||
release_name: ${{ steps.changelog.outputs.tag }} | ||
body: ${{ steps.changelog.outputs.clean_changelog }} | ||
- uses: actions/setup-node@v3 |
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.
The other job also includes the setup-node, so I added this.
.github/workflows/onPushToMain.yml
Outdated
body: ${{ steps.changelog.outputs.clean_changelog }} | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16.0.x' |
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.
node-version-file: '.nvmrc'
FTW?
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.
ohhhh yes, lemme do that for both
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.
done!
github-token: ${{ secrets.IDEE_GH_TOKEN }} | ||
skip-version-file: true | ||
output-file: false | ||
tag-prefix: "v" |
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.
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: '' |
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.
This is being ignored in favor of the default value ("v"), so I removed it as well.
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.
SHIPPIT
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