Skip to content

Commit f958647

Browse files
committed
Release
1 parent a282084 commit f958647

4 files changed

Lines changed: 68 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release Package
2+
3+
on:
4+
push:
5+
branches:
6+
- master # Or master, depending on your default branch
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write # Needed for creating releases
13+
issues: write # Needed for commenting on issues
14+
pull-requests: write # Needed for commenting on PRs
15+
id-token: write # Needed for npm provenance
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: '20.x'
27+
registry-url: 'https://registry.npmjs.org'
28+
29+
- name: Install dependencies
30+
run: npm ci
31+
32+
- name: Build package
33+
run: npm run build
34+
35+
- name: Install semantic-release
36+
run: npm install -g semantic-release @semantic-release/github @semantic-release/npm @semantic-release/git
37+
38+
- name: Release
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
42+
run: npx semantic-release

.releaserc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"branches": ["master"],
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
["@semantic-release/npm", {
7+
"pkgRoot": "packages/electron-ssr"
8+
}],
9+
["@semantic-release/github", {
10+
"assets": ["packages/electron-ssr/dist/*.js"]
11+
}],
12+
["@semantic-release/git", {
13+
"assets": ["packages/electron-ssr/package.json"],
14+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
15+
}]
16+
]
17+
}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ See the `examples` directory for complete examples:
342342
- `simple-alpine.js` - Basic example, but using only AlpineJS
343343
- `htmx-notes.js` - Example with realtime synced secure notes
344344
- `datastar.js` - Example using Datastar
345+
- `realtime.js` - Testing streaming HTML updates over SSE at 60+ FPS with Datastar
345346

346347

347348
### Contributing

packages/electron-ssr/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313
"import": "./dist/index.es.js"
1414
}
1515
},
16+
"repository": {
17+
"type": "git",
18+
"url": "git+https://github.com/StreamUI/electron-ssr.git"
19+
},
20+
"publishConfig": {
21+
"access": "public",
22+
"registry": "https://registry.npmjs.org/"
23+
},
1624
"scripts": {
1725
"build": "tsc && vite build",
1826
"dev": "tsc && vite build --watch",

0 commit comments

Comments
 (0)