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

Fix publishing configuration, closes #858 #863

Merged
merged 2 commits into from
Jul 11, 2022
Merged

Conversation

rickycodes
Copy link
Member

@rickycodes rickycodes commented Jun 30, 2022

Description

This introduces some changes to our publishing configuration such that we release from main instead of release/* branches

I'm opening this as a WIP Draft PR because this relies on: MetaMask/action-publish-release#46 and a release of it.

(that's been addressed now and this is fully ready)

I've created a script for prepack that can be skipped in CI via SKIP_PREPACK environment variable. this is because we don't want a new build in CI prior to publish, we just want to pick up the cache from the previous build. I still needed to cache node_modules because yarn now complains about the state file and it'll halt you from running any yarn scripts if that's not in order (even if we're not using those files for the actual deployment). I'm also not happy about the early exit code I've added here. Ideally, I'd like to see if the version has incremented in the filter and then skip if it hasn't, but I don't believe that's possible

Issue

Resolves #858

@rickycodes rickycodes changed the title fix publishing configuration, closes #858 Fix publishing configuration, closes #858 Jun 30, 2022
mcmire
mcmire previously approved these changes Jul 7, 2022
Copy link
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

This makes sense to me. Let me know when this is out of draft stage and I'll re-review!

@rickycodes rickycodes force-pushed the fix-publishing-config branch 2 times, most recently from f230a62 to 6ba32a7 Compare July 8, 2022 17:39
scripts/prepack.sh Outdated Show resolved Hide resolved
scripts/check-version.sh Outdated Show resolved Hide resolved
@rickycodes rickycodes marked this pull request as ready for review July 8, 2022 18:32
@rickycodes rickycodes requested a review from a team as a code owner July 8, 2022 18:32
Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
@rickycodes
Copy link
Member Author

rickycodes commented Jul 8, 2022

I've tested this all out in my fork and it's correctly skipping for regular pushes:

image

And releasing when appropriate (after a release PR is merged to main):

image

mcmire
mcmire previously approved these changes Jul 8, 2022
Copy link
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

This seems good to me!

@rickycodes rickycodes merged commit b7db452 into main Jul 11, 2022
@rickycodes rickycodes deleted the fix-publishing-config branch July 11, 2022 16:33
@rickycodes rickycodes mentioned this pull request Jul 11, 2022
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* fix publishing configuration, closes #858

Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>

* remove node_modules

Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* fix publishing configuration, closes #858

Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>

* remove node_modules

Co-authored-by: Elliot Winkler <elliot.winkler@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.

Fix publishing configuration
2 participants