-
Notifications
You must be signed in to change notification settings - Fork 1.1k
49 lines (39 loc) · 1.08 KB
/
typescript-sdk-preview.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: 'Publish TypeScript SDK Preview'
# pkg.pr.new won't publish anything to NPM; instead,
# it leverages its own URLs, which are npm-compatible.
# npm install https://pkg.pr.new/${owner}/${repo}/${package}@${commit}
# learn more: https://github.com/stackblitz-labs/pkg.pr.new/blob/main/README.md
on:
push:
tags: '!**'
paths:
- 'typescript-sdk/**'
pull_request:
paths:
- 'typescript-sdk/**'
workflow_dispatch:
defaults:
run:
shell: bash
env:
ACTIONS_RUNNER_DEBUG: true
NODE_OPTIONS: '--no-warnings'
jobs:
preview:
name: 'Publish TypeScript SDK Preview'
runs-on: ['ubuntu-latest']
steps:
- name: 'Checkout'
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Setup bun'
uses: oven-sh/setup-bun@v2
with:
bun-version: 'latest'
- name: 'Install Dependencies'
working-directory: './typescript-sdk'
run: bun install
- name: 'Publish Preview Version'
run: |
bun x pkg-pr-new publish --no-template --comment=update typescript-sdk