Skip to content

Commit b4c06e3

Browse files
authored
Use NPM Trusted Publishing (#1321)
1 parent 9e31735 commit b4c06e3

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,10 @@ jobs:
2121
with:
2222
job-name: "Publish to NPM"
2323
run-cmd: "hatch run javascript:publish_client"
24-
secrets:
25-
node-auth-token: ${{ secrets.NODE_AUTH_TOKEN }}
2624

2725
publish-event-to-object:
2826
if: startsWith(github.event.release.name, 'event-to-object ')
2927
uses: ./.github/workflows/.hatch-run.yml
3028
with:
3129
job-name: "Publish to NPM"
3230
run-cmd: "hatch run javascript:publish_event_to_object"
33-
secrets:
34-
node-auth-token: ${{ secrets.NODE_AUTH_TOKEN }}

src/build_scripts/build_js_app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"install",
1515
"--cwd",
1616
"src/js/packages/@reactpy/app",
17-
*([] if dev_mode else ["--production"]),
1817
],
1918
[
2019
"bun",

src/build_scripts/build_js_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"install",
1515
"--cwd",
1616
"src/js/packages/@reactpy/client",
17-
*([] if dev_mode else ["--production"]),
1817
],
1918
[
2019
"bun",

src/build_scripts/build_js_event_to_object.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"install",
1515
"--cwd",
1616
"src/js/packages/event-to-object",
17-
*([] if dev_mode else ["--production"]),
1817
],
1918
[
2019
"bun",

src/js/packages/@reactpy/client/src/components.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import { set as setJsonPointer } from "json-pointer";
2-
import type { ChangeEvent, MutableRefObject } from "preact/compat";
3-
import { createContext, createElement, Fragment, type JSX } from "preact";
2+
import type { MutableRefObject } from "preact/compat";
3+
import {
4+
createContext,
5+
createElement,
6+
Fragment,
7+
type JSX,
8+
type TargetedEvent,
9+
} from "preact";
410
import { useContext, useEffect, useRef, useState } from "preact/hooks";
511
import type {
612
ImportSourceBinding,
@@ -82,7 +88,7 @@ function UserInputElement({ model }: { model: ReactPyVdom }): JSX.Element {
8288

8389
const givenOnChange = props.onChange;
8490
if (typeof givenOnChange === "function") {
85-
props.onChange = (event: ChangeEvent<any>) => {
91+
props.onChange = (event: TargetedEvent<any>) => {
8692
// immediately update the value to give the user feedback
8793
if (event.target) {
8894
setValue((event.target as HTMLInputElement).value);

0 commit comments

Comments
 (0)