forked from Shopify/hydrogen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the demo-store to https://github.com/Shopify/hydrogen-demo-store (…
…Shopify#1769) Also add deployments for the skeleton template and examples.
- Loading branch information
Showing
119 changed files
with
154 additions
and
14,026 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,10 +88,6 @@ jobs: | |
run: | | ||
node scripts/compile-template-for-dist.mjs hello-world | ||
- name: Compile demo-store | ||
run: | | ||
node scripts/compile-template-for-dist.mjs demo-store | ||
- name: Update templates in the dist branch | ||
run: | | ||
git add . | ||
|
@@ -115,24 +111,24 @@ jobs: | |
# - name: Update package-lock.json | ||
# run: npm install --package-lock-only --ignore-engines | ||
|
||
# TODO: Figure out how to push to protected branch | ||
# - name: Push commit to main branch | ||
# run: | | ||
# git add . | ||
# git status | ||
# git config user.email "[email protected]" | ||
# git config user.name "Hydrogen Bot" | ||
# git show-ref | ||
# git commit -m "[ci] Update package-lock.json" | ||
# git push origin HEAD:main | ||
|
||
# - name: Sync latest to version branch | ||
# run: | | ||
# git config user.email "[email protected]" | ||
# git config user.name "Hydrogen Bot" | ||
# git show-ref | ||
# git commit -m "[ci] release ${{ needs.changelog.outputs.latestBranch }}" | ||
# git push origin main:${{ needs.changelog.outputs.latestBranch }} --force | ||
# TODO: Figure out how to push to protected branch | ||
# - name: Push commit to main branch | ||
# run: | | ||
# git add . | ||
# git status | ||
# git config user.email "[email protected]" | ||
# git config user.name "Hydrogen Bot" | ||
# git show-ref | ||
# git commit -m "[ci] Update package-lock.json" | ||
# git push origin HEAD:main | ||
|
||
# - name: Sync latest to version branch | ||
# run: | | ||
# git config user.email "[email protected]" | ||
# git config user.name "Hydrogen Bot" | ||
# git show-ref | ||
# git commit -m "[ci] release ${{ needs.changelog.outputs.latestBranch }}" | ||
# git push origin main:${{ needs.changelog.outputs.latestBranch }} --force | ||
|
||
discord_announcement: | ||
needs: changelog | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Don't change the line below! | ||
#! oxygen_storefront_id: 1000014888 | ||
|
||
name: Examples deploy | ||
on: [push] | ||
|
||
permissions: | ||
contents: read | ||
deployments: write | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy to Oxygen | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
# In addition to updating the examples matrix below, make sure to also update | ||
# the add a key in the `env` block of the `Build and Publish to Oxygen` step | ||
matrix: | ||
examples: | ||
[ | ||
{name: 'optimistic-cart-ui', token: '1000014888'}, | ||
{name: 'vite', token: '1000014892'}, | ||
{name: 'subscriptions', token: '1000014928'}, | ||
{name: 'third-party-queries-caching', token: '1000014929'}, | ||
{name: 'custom-cart-method', token: '1000014930'}, | ||
] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'npm' | ||
cache-dependency-path: '**/package-lock.json' | ||
|
||
- name: Cache node modules | ||
id: cache-npm | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: 📦 Build packages | ||
run: | | ||
CI=true npm run build:pkg | ||
- name: Build and Publish to Oxygen | ||
id: deploy | ||
working-directory: examples/${{ matrix.examples.name }} | ||
run: | | ||
npx shopify hydrogen deploy --no-lockfile-check --diff --token=$OXYGEN_DEPLOYMENT_TOKEN_${{ matrix.examples.token }} | ||
env: | ||
OXYGEN_DEPLOYMENT_TOKEN_1000014888: ${{ secrets.OXYGEN_DEPLOYMENT_TOKEN_1000014888 }} | ||
OXYGEN_DEPLOYMENT_TOKEN_1000014892: ${{ secrets.OXYGEN_DEPLOYMENT_TOKEN_1000014892 }} | ||
OXYGEN_DEPLOYMENT_TOKEN_1000014928: ${{ secrets.OXYGEN_DEPLOYMENT_TOKEN_1000014928 }} | ||
OXYGEN_DEPLOYMENT_TOKEN_1000014929: ${{ secrets.OXYGEN_DEPLOYMENT_TOKEN_1000014929 }} | ||
OXYGEN_DEPLOYMENT_TOKEN_1000014930: ${{ secrets.OXYGEN_DEPLOYMENT_TOKEN_1000014930 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.