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

Commit

Permalink
ci: publish on stackblitz
Browse files Browse the repository at this point in the history
  • Loading branch information
hanspagel committed Jul 23, 2024
1 parent a878d10 commit b726ea2
Showing 1 changed file with 31 additions and 0 deletions.
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/*

0 comments on commit b726ea2

Please sign in to comment.