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

chore: improve Stackblitz publishing flow #203

Merged
merged 5 commits into from
Nov 10, 2021
Merged

Conversation

jplhomer
Copy link
Contributor

@jplhomer jplhomer commented Nov 10, 2021

Description

RE: #125

Right now, I have to manually update our Stackblitz template in my personal template at https://hydrogen.new whenever we ship a release. This does not scale.

This PR:

  • Runs a GH Action when we create a release. It renames _gitignore so it gets picked up properly by stackblitz and force pushes to the stackblitz branch
  • Moves LOCAL_DEV to prefix the dev-server script in the root of the monorepo

You can test out this new flow: https://stackblitz.com/fork/github/shopify/hydrogen/tree/stackblitz/packages/dev

Additional context

The gitignore shenanigans are to work around an interesting NPM publish behavior which renames .gitignore to .npmignore lolol npm/npm#1862


Before submitting the PR, please make sure you do the following:

  • Read the Contributing Guidelines
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123)

@@ -0,0 +1,4 @@
{
"installDependencies": true,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this sufficient for the --legacy-peer-deps?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess so! It has been up to this point. We will see.

@jplhomer jplhomer merged commit 6957661 into main Nov 10, 2021
@jplhomer jplhomer deleted the jl-stackblitz-publish branch November 10, 2021 18:01
rafaelstz pushed a commit to rafaelstz/hydrogen that referenced this pull request Mar 4, 2023
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