Skip to content

Commit 8038db0

Browse files
committed
Another attempt at fixing NPM publishing
1 parent 3502710 commit 8038db0

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/.hatch-run.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ jobs:
4141
with:
4242
path: C:\Users\runneradmin\AppData\Local\ms-playwright\
4343
key: ${{ runner.os }}-playwright
44+
# FIXME: Temporarily added setup-node to fix lack of "Trusted Publishing" in Bun
45+
# Ref: https://github.com/oven-sh/bun/issues/15601
46+
- uses: actions/setup-node@v6
47+
with:
48+
node-version: 24
49+
registry-url: https://registry.npmjs.org/
4450
- uses: oven-sh/setup-bun@v2
4551
with:
4652
bun-version: latest

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,15 @@ build_client = ['hatch run "src/build_scripts/build_js_client.py" {args}']
210210
build_app = ['hatch run "src/build_scripts/build_js_app.py" {args}']
211211
publish_event_to_object = [
212212
'hatch run javascript:build_event_to_object',
213-
'cd "src/js/packages/event-to-object" && bunx npm publish --provenance --access public',
213+
# FIXME: using npm publish to fix lack of "Trusted Publishing" in Bun
214+
# Ref: https://github.com/oven-sh/bun/issues/15601
215+
'cd "src/js/packages/event-to-object" && bunx npm@11.8.0 publish --provenance --access public',
214216
]
215217
publish_client = [
216218
'hatch run javascript:build_client',
217-
'cd "src/js/packages/@reactpy/client" && bunx npm publish --provenance --access public',
219+
# FIXME: using npm publish to fix lack of "Trusted Publishing" in Bun
220+
# Ref: https://github.com/oven-sh/bun/issues/15601
221+
'cd "src/js/packages/@reactpy/client" && bunx npm@11.8.0 publish --provenance --access public',
218222
]
219223

220224
#########################

0 commit comments

Comments
 (0)