diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index ad732a284f..0085cd58f1 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -2,6 +2,8 @@ name: Deploy Coinbase Wallet SDK Playground to Pages on: workflow_dispatch: + push: + branches: [master] permissions: contents: read @@ -15,26 +17,29 @@ concurrency: jobs: build: runs-on: ubuntu-latest + defaults: + run: + working-directory: ./packages/playground steps: - name: Checkout uses: actions/checkout@v3 - name: Setup Node uses: actions/setup-node@v3 with: - node-version: "18" - cache: yarn + node-version-file: '.nvmrc' + cache-dependency-path: 'yarn.lock' - name: Setup Pages uses: actions/configure-pages@v3 with: static_site_generator: next - name: Install dependencies - run: yarn install + run: yarn install --immutable - name: Build and export with Next.js - run: yarn workspace @coinbase/wallet-sdk-testapp run export + run: yarn export - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: - path: ./apps/testapp/out + path: ./out deploy: environment: