From 0c5b624264ab055f5427cf7db5c75653c20cf38c Mon Sep 17 00:00:00 2001 From: "shopify[bot]" <79544226+shopify[bot]@users.noreply.github.com> Date: Tue, 22 Mar 2022 17:50:18 +0000 Subject: [PATCH] Add Shopify Oxygen Deployment workflow --- .github/workflows/oxygen-deployment.yml | 63 +++++++++++++++++++++++++ shopify.config.js | 6 +++ 2 files changed, 69 insertions(+) create mode 100644 .github/workflows/oxygen-deployment.yml create mode 100644 shopify.config.js diff --git a/.github/workflows/oxygen-deployment.yml b/.github/workflows/oxygen-deployment.yml new file mode 100644 index 0000000..08a2e80 --- /dev/null +++ b/.github/workflows/oxygen-deployment.yml @@ -0,0 +1,63 @@ + +name: Deploy +on: [push] + +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Setup node.js + uses: actions/setup-node@v2 + with: + node-version: '16' + check-latest: true + + - name: Get yarn cache directory + id: yarn-cache-dir-path + run: echo "::set-output name=dir::$(yarn cache dir)" + + - uses: actions/cache@v2 + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + + - name: Install dependencies + id: 'install-dependencies' + run: yarn + + - name: Generate deployment ID + id: deployment-id + run: | + yarn add ulid + echo "::set-output name=ID::$(LC_ALL=C