Skip to content

Commit 73ca1ec

Browse files
committed
Add UI SDK release workflow and CI updates
Bump CI actions and add a new release workflow for the UI SDK. Update .github/workflows/packages-preview-release.yaml to use pnpm/action-setup@v6 and actions/setup-node@v6. Add .github/workflows/release-ui-sdk.yaml to publish ui packages on tag pushes (sets up pnpm/node, installs deps, and runs pnpm -r publish). Add a prepublishOnly script in ui/packages/sdk/package.json to run the TypeScript build before publishing.
1 parent 5f9902b commit 73ca1ec

3 files changed

Lines changed: 37 additions & 2 deletions

File tree

.github/workflows/packages-preview-release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v6
1919
- name: Set up pnpm
20-
uses: pnpm/action-setup@v4
20+
uses: pnpm/action-setup@v6
2121
with:
2222
version: 10
2323

2424
- name: Set up Node.js
25-
uses: actions/setup-node@v4
25+
uses: actions/setup-node@v6
2626
with:
2727
node-version: 24
2828
cache: pnpm
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release UI SDK
2+
3+
permissions:
4+
contents: write
5+
id-token: write
6+
7+
on:
8+
push:
9+
tags:
10+
- "v*"
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v6
17+
18+
- name: Set up pnpm
19+
uses: pnpm/action-setup@v6
20+
with:
21+
version: 10
22+
23+
- name: Set up Node.js
24+
uses: actions/setup-node@v6
25+
with:
26+
node-version: 24
27+
cache: pnpm
28+
cache-dependency-path: ui/pnpm-lock.yaml
29+
30+
- name: Install Dependencies
31+
run: cd ui && pnpm install
32+
33+
- name: Publish to NPM
34+
run: cd ui && pnpm -r publish --access public --no-git-checks

ui/packages/sdk/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
},
3434
"scripts": {
3535
"build": "tsc -p tsconfig.build.json",
36+
"prepublishOnly": "tsc -p tsconfig.build.json",
3637
"test": "rstest run --config rstest.config.ts",
3738
"typecheck": "tsc --noEmit -p tsconfig.json"
3839
},

0 commit comments

Comments
 (0)