Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

ci: publish on stackblitz #38

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/publish-on-stackblitz.yml
Original file line number Diff line number Diff line change
@@ -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/*