Closed wizardlyhel closed 1 year ago
It's green now ✅ 🎉
Notes:
@shopify/cli-h2-test
plugin. However, we could just go with the original plugin name @shopify/cli-hydrogen
and release an experimental version instead because I don't think this package name will change.:wave: It seems that this PR is adding an open-source GitHub action.
We are letting you know that majority of open-source GitHub actions are deprecated because of security reasons.
Any GitHub actions coming from unverified developers will be blocked on February 1, 2023.
If you still want to onboard these actions, please follow this onboarding guide.
For any questions please reach us on #code-scale channel.
:wave: It seems that this PR is adding a GitHub Action workflow that looks a lot like a CI step.
CI should generally be handled with Shopify Build pipelines, and GitHub Actions should be used for GitHub automation and package publishing.
If this workflow change is not introducing a CI step, then feel free to ignore this comment.
:wave: It seems that this PR is adding, or editing, a GitHub Action workflow that is not configured to use our custom GitHub Action runners.
For private repositories, the only supported way of running Action workflows is via the custom runners. You can learn more about the supported use cases in our GitHub Actions documentation.
To make sure that your workflow is using these runners you need to add the shopify-ubuntu-latest
label to your workflow manifest file, or shopify-core-ubuntu-latest
for Core repositories:
runs-on: shopify-ubuntu-latest
If your repository is intended to become Public later, please use runs-on: shopify-ubuntu-latest
for now. The custom runners should function the same as ubuntu-latest
public runners.
If you run into any issues with the custom runners, please reach out in #help-eng-infrastructure.
Getting app security approval for changeset reminder workflow
To-Do:
npm run changeset add
node scripts/compile-template-for-dist.mjs demo-store
works properlyuses: Shopify/github-actions/oss/mskelton/changelog-reminder-action@v2
hydrogen.new
if that was the tradeoff.NPM_TOKEN
GH secret applied to this repo (it's an org-wide secret but limited to an allowlist). I can't remember who added it to shopify/hydrogen
for me 🙃
- Might check in with @frehner to see how we can get the
NPM_TOKEN
GH secret applied to this repo (it's an org-wide secret but limited to an allowlist). I can't remember who added it toshopify/hydrogen
for me 🙃
I think #help-eng-infrastructure
is where I asked.
Quick googling and I got this:
We can register our Hydrogen template as a Remix stack
npx create-remix@latest --template my-username/my-repo
Example of a stack: https://github.com/edmundhung/remix-worker-template
The stack itself can be written in Typescript and the Remix cli can remove typescript if user choose to.
Remove TypeScript If there's a
tsconfig.json
file in the root of the project, the Remix CLI will ask whether the user wants the TypeScript automatically removed from the template. We don't recommend this, but some folks just really want to write regular JavaScript.
The above drastically differs from the way how Oxygen is pulling templates from Hydrogen now. @jplhomer I know we used to use create hydrogen command line to generate template in Oxygen but later on moved away from that. Perhaps it would be beneficial to make 2 deployable templates?
dist
branch for OxygenI'll see what I can do to run the JS template creation locally with remix-dev
@frandiox Can you explain how are we doing the package name alias in this PR?
I don't see any import path changes in the demo-store
template .. and yet somehow it is referencing properly from @shopify/hydrogen-remix
--> @shopify/h2-test-hydrogen-remix
More github actions to be approved by appsec
Can you explain how are we doing the package name alias in this PR?
There are aliases in templates/demo-store/tsconfig.json
, in the paths
property 👍 -- hopefully that's also valid in jsconfig.json
.
It looks like the concurrency
option works for canceling previous flows:
I think this is ready now. We have cache for:
node_modules
And we are not using any action that needs internal approval 👍
:shipit: :shipit: :shipit: :shipit:
Requesting for a npm token
70
How to test
Check
templates
are being generated properlytemplates/demo-store
files are a fresh copy from githubnode scripts/compile-template-for-dist.mjs demo-store
in terminaltemplates
folder:demo-store-js
anddemo-store-ts
npm i
andnpm run dev
works for both templates (Only works when we release the packages)The changesets github workflow will force push these templates to the
dist
branch.