From 41223a12a6c3885ed3bb08fd9bf245e56bbb7e6b Mon Sep 17 00:00:00 2001 From: Incorbador Date: Sat, 25 Nov 2023 17:40:30 +0100 Subject: [PATCH] Test GH action --- .github/workflows/deploy-examples.yml | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/deploy-examples.yml diff --git a/.github/workflows/deploy-examples.yml b/.github/workflows/deploy-examples.yml new file mode 100644 index 000000000..65149fe52 --- /dev/null +++ b/.github/workflows/deploy-examples.yml @@ -0,0 +1,40 @@ +name: Deploy examples to Vercel + +on: + push: + branches: + #- main + - feature-56/setup-vercel-deployment + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 14 + + - name: Install dependencies + run: | + npm install -g lerna + npm install -g vercel + lerna run build + + - name: Deploy react-sdk-example to Vercel + run: | + cd playground/react-sdk-example + npx vercel --token ${{ secrets.VERCEL_TOKEN }} --prod + env: + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} + + - name: Deploy react-example to Vercel + run: | + cd playground/react-example + npx vercel --token ${{ secrets.VERCEL_TOKEN }} --prod + env: + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}