Skip to content

Commit 393df70

Browse files
Just build manually and attach to release
1 parent c05ed62 commit 393df70

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ jobs:
99
build-and-publish:
1010
runs-on: ubuntu-latest
1111
permissions:
12-
contents: read
13-
packages: write
12+
contents: write
1413
steps:
1514
- uses: actions/checkout@v4
1615
- uses: actions/setup-node@v4
@@ -22,10 +21,9 @@ jobs:
2221
- run: yarn install
2322
- run: yarn build
2423
- run: yarn pack -f package.tgz
25-
- run: npm publish package.tgz # --provenance --access public
26-
env:
27-
# Publish with github until I gain access to my npm account
28-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
- uses: softprops/action-gh-release@v2
25+
with:
26+
files: package.tgz
2927
lint:
3028
runs-on: ubuntu-latest
3129
steps:

src/anywidget.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import './index.css'
55
import {DOMWidgetModel} from '@jupyter-widgets/base'
66

77

8-
export function ModelApp({model}: {model: DOMWidgetModel}) {
8+
// eslint-disable-next-line react-refresh/only-export-components
9+
function ModelApp({model}: {model: DOMWidgetModel}) {
910
const egraph = useSyncExternalStore(
1011
(callback) => {model.on('change:egraph', callback); return () => model.off('change:egraph', callback)},
1112
() => model.get('egraph'),

vite.config.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@ export default defineConfig({
77
plugins: [react()],
88
build: {
99
lib: {
10-
entry: [resolve(__dirname, 'src/App.tsx'), resolve(__dirname, 'src/anywidget.tsx')],
10+
entry: [resolve(__dirname, 'src/anywidget.tsx')],
1111
formats: ['es', ],
1212
},
13-
rollupOptions: {
14-
external: ['react', 'react/jsx-runtime', 'react-dom'],
15-
},
1613
},
1714

1815
})

0 commit comments

Comments
 (0)