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 }}