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

Commit 9e800f1

Browse files
authored
ci: publish on stackblitz (#38)
1 parent a878d10 commit 9e800f1

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish on Stackblitz
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
ci:
10+
runs-on: ubuntu-20.04
11+
if: github.head_ref == 'changeset-release/main'
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: pnpm/action-setup@v4
16+
- name: Use Node.js 20
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
cache: 'pnpm'
21+
- name: Install dependencies
22+
run: pnpm install
23+
- name: Turborepo cache
24+
uses: actions/cache/restore@v4
25+
with:
26+
path: .turbo
27+
key: turbo-${{ runner.os }}-node-20
28+
- name: Build
29+
run: pnpm build
30+
- name: Publish on Stackblitz
31+
run: npx pkg-pr-new publish ./packages/*

0 commit comments

Comments
 (0)