File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : build
2+ on : workflow_dispatch
3+ jobs :
4+ build :
5+ runs-on : ubuntu-22.04
6+ steps :
7+ - uses : actions/setup-node@v4
8+ with :
9+ node-version : 23
10+ - run : |
11+ cat <<EOF > package.json
12+ {
13+ "name": "lexical-cli-render",
14+ "type": "module",
15+ "private": true,
16+ "version": "0.24.0",
17+ "scripts": {},
18+ "dependencies": {
19+ "@lexical/headless": "^0.24.0",
20+ "@lexical/html": "^0.24.0",
21+ "@lexical/react": "0.24.0",
22+ "jsdom": "^26.0.0",
23+ "lexical": "0.24.0",
24+ "react": "^18.2.0",
25+ "react-dom": "^18.2.0",
26+ "ts-node": "^10.9.2"
27+ },
28+ "devDependencies": {
29+ "@types/react": "^18.2.59",
30+ "@types/react-dom": "^18.2.19",
31+ "typescript": "^5.2.2"
32+ }
33+ }
34+ EOF
35+
36+ - run : npm install
37+
38+ # - run: |
39+ # cat samples/playground_without_emoji.lexical.json | node lexical-cli-render.ts
40+ #
41+ # sed -i 's@"type": "module",@@' package.json
42+ # cat samples/playground.lexical.json | npx ts-node lexical-cli-render-tsx.ts
43+ #
44+ # - uses: actions/upload-artifact@v4
45+ # with:
46+ # name: lexicalplaygroundonlyassets
47+ # path: dist/
You can’t perform that action at this time.
0 commit comments