From 58a3fb3e592d8bced3f331b71423fcfdfc723a6b Mon Sep 17 00:00:00 2001 From: Mohammad Bagher Abiyat Date: Mon, 25 Mar 2024 18:02:51 +0330 Subject: [PATCH] cr based on deploy urls --- .github/workflows/cr.yml | 20 -------------------- .github/workflows/preview.yml | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 20 deletions(-) delete mode 100644 .github/workflows/cr.yml diff --git a/.github/workflows/cr.yml b/.github/workflows/cr.yml deleted file mode 100644 index dabbef2d..00000000 --- a/.github/workflows/cr.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Continuous Releases -on: [push] - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - run: corepack enable - - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: "pnpm" - - run: pnpm install - - run: pnpm build - - name: Stackblitz CR - run: pnpm sb publish - working-directory: ./playground - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 610914a5..9991b181 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -34,3 +34,21 @@ jobs: DEPLOYMENT_URL: ${{ steps.deploy.outputs.deployment-url }} run: echo $DEPLOYMENT_URL + cr: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: corepack enable + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "pnpm" + - run: pnpm install + - run: pnpm build + env: + API_URL: ${{ steps.deploy.outputs.deployment-url }} + - name: Stackblitz CR + run: pnpm sb publish + working-directory: ./playground + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}