diff --git a/.github/workflows/oxygen-deployment-1000000232.yml b/.github/workflows/oxygen-deployment-1000010106.yml similarity index 57% rename from .github/workflows/oxygen-deployment-1000000232.yml rename to .github/workflows/oxygen-deployment-1000010106.yml index f44daec..d7681a1 100644 --- a/.github/workflows/oxygen-deployment-1000000232.yml +++ b/.github/workflows/oxygen-deployment-1000010106.yml @@ -1,7 +1,7 @@ # Don't change the line below! -#! oxygen_storefront_id: 1000000232 +#! oxygen_storefront_id: 1000010106 -name: Storefront 1000000232 +name: Storefront 1000010106 on: [push] permissions: @@ -14,35 +14,36 @@ jobs: timeout-minutes: 30 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: '18' + node-version: 'lts/*' check-latest: true - - name: Get yarn cache directory - id: yarn-cache-dir-path - run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - - uses: actions/cache@v3 + - name: Cache node modules + id: cache-npm + uses: actions/cache@v3 + env: + cache-name: cache-node-modules with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} restore-keys: | - ${{ runner.os }}-yarn- + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- - name: Install dependencies - id: 'install-dependencies' - run: yarn + run: npm ci - name: Build and Publish to Oxygen id: deploy uses: shopify/oxygenctl-action@v4 with: - oxygen_deployment_token: ${{ secrets.OXYGEN_DEPLOYMENT_TOKEN_1000000232 }} - build_command: "HYDROGEN_ASSET_BASE_URL=$OXYGEN_ASSET_BASE_URL yarn build" + oxygen_deployment_token: ${{ secrets.OXYGEN_DEPLOYMENT_TOKEN_1000010106 }} + build_command: "npm run build" # Create GitHub Deployment - name: Create GitHub Deployment @@ -53,3 +54,4 @@ jobs: environment: 'preview' preview_url: ${{ steps.deploy.outputs.url }} description: ${{ github.event.head_commit.message }} + \ No newline at end of file