From b726ea2b19adc86617e6401098677abfb62ef75b Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Tue, 23 Jul 2024 14:24:31 +0200 Subject: [PATCH] ci: publish on stackblitz --- .github/workflows/publish-on-stackblitz.yml | 31 +++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/publish-on-stackblitz.yml diff --git a/.github/workflows/publish-on-stackblitz.yml b/.github/workflows/publish-on-stackblitz.yml new file mode 100644 index 0000000..ed2ba5d --- /dev/null +++ b/.github/workflows/publish-on-stackblitz.yml @@ -0,0 +1,31 @@ +name: Publish on Stackblitz + +on: + pull_request: + branches: + - main + +jobs: + ci: + runs-on: ubuntu-20.04 + if: github.head_ref == 'changeset-release/main' + + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + - name: Use Node.js 20 + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + - name: Install dependencies + run: pnpm install + - name: Turborepo cache + uses: actions/cache/restore@v4 + with: + path: .turbo + key: turbo-${{ runner.os }}-node-20 + - name: Build + run: pnpm build + - name: Publish on Stackblitz + run: npx pkg-pr-new publish ./packages/*