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

Use github.sha for publish jobs #776

Merged
merged 3 commits into from
Apr 8, 2022
Merged

Use github.sha for publish jobs #776

merged 3 commits into from
Apr 8, 2022

Conversation

rickycodes
Copy link
Member

@rickycodes rickycodes commented Apr 8, 2022

It would appear that github.event.pull_request.base.sha is actually not what we want here.

Instead we use github.sha which will ensure we get "The commit SHA that triggered the workflow run."

Additionally we set ignore-scripts true in our npm config so we can skip the prepublishOnly step (which runs yarn build again).

@rickycodes rickycodes requested a review from a team as a code owner April 8, 2022 17:41
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM!

@rickycodes rickycodes merged commit e4925ee into main Apr 8, 2022
@rickycodes rickycodes deleted the fix-npm-publish branch April 8, 2022 17:51
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* use github.sha

* ignore-scripts

* Update .github/workflows/publish-release.yml

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* use github.sha

* ignore-scripts

* Update .github/workflows/publish-release.yml

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
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