Skip to content

Commit

Permalink
Update oxygen-deployment-1000026986.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kobykotiv authored Nov 9, 2024
1 parent eeea6b3 commit 1da33bf
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/oxygen-deployment-1000026986.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,28 @@ jobs:
with:
node-version: "lts/*"
check-latest: true
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 9
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Cache node modules
id: cache-npm
id: cache-pnpm
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: npm ci
run: pnpm install

- name: Build and Publish to Oxygen
run: npx shopify hydrogen deploy
Expand Down

0 comments on commit 1da33bf

Please sign in to comment.