Skip to content

Commit 428053b

Browse files
authored
ci: one-time publish workflow (#36)
1 parent c643152 commit 428053b

File tree

3 files changed

+59
-0
lines changed

3 files changed

+59
-0
lines changed

.github/workflows/publish-fix.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Publish Fix
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish:
8+
runs-on:
9+
group: databricks-protected-runner-group
10+
labels: linux-ubuntu-latest
11+
12+
environment: release
13+
14+
permissions:
15+
contents: read
16+
id-token: write # Required for npm OIDC publishing with provenance
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Install pnpm
22+
uses: pnpm/action-setup@v4
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: "20"
28+
cache: "pnpm"
29+
registry-url: "https://registry.npmjs.org"
30+
31+
- name: Update npm
32+
run: npm install -g npm@latest
33+
34+
- name: Install dependencies
35+
run: pnpm install --frozen-lockfile
36+
37+
- name: Build packages
38+
run: pnpm build
39+
40+
- name: Prepare appkit for publishing
41+
run: pnpm --filter=@databricks/appkit dist
42+
43+
- name: Prepare appkit-ui for publishing
44+
run: pnpm --filter=@databricks/appkit-ui dist
45+
46+
- name: Publish appkit
47+
run: npm publish packages/appkit/tmp --access public --provenance
48+
49+
- name: Publish appkit-ui
50+
run: npm publish packages/appkit-ui/tmp --access public --provenance
51+

packages/appkit-ui/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"name": "@databricks/appkit-ui",
33
"type": "module",
44
"version": "0.1.0",
5+
"repository": {
6+
"type": "git",
7+
"url": "git+https://github.com/databricks/appkit.git"
8+
},
59
"packageManager": "[email protected]",
610
"files": [
711
"dist",

packages/appkit/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
77
"packageManager": "[email protected]",
8+
"repository": {
9+
"type": "git",
10+
"url": "git+https://github.com/databricks/appkit.git"
11+
},
812
"files": [
913
"dist",
1014
"bin",

0 commit comments

Comments
 (0)