Skip to content

Commit 25ac9cc

Browse files
committed
🎉 feat: use @elysia scope
1 parent fca18e1 commit 25ac9cc

5 files changed

Lines changed: 75 additions & 12 deletions

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Publish Legacy
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
defaults:
8+
run:
9+
shell: bash
10+
11+
permissions:
12+
id-token: write
13+
14+
env:
15+
# Enable debug logging for actions
16+
ACTIONS_RUNNER_DEBUG: true
17+
18+
jobs:
19+
publish-npm:
20+
name: 'Publish: npm Registry'
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: 'Checkout'
24+
uses: actions/checkout@v4
25+
26+
- name: 'Setup Bun'
27+
uses: oven-sh/setup-bun@v1
28+
with:
29+
bun-version: latest
30+
registry-url: "https://registry.npmjs.org"
31+
32+
- uses: actions/setup-node@v5
33+
with:
34+
node-version: '24.x'
35+
registry-url: 'https://registry.npmjs.org'
36+
37+
- name: replace @elysia to @elysiajs
38+
run: sed -i 's/@elysia/@elysiajs/g' package.json
39+
40+
- name: Install packages
41+
run: bun install
42+
43+
- name: Build code
44+
run: bun run build
45+
46+
- name: Test
47+
run: bun run test
48+
49+
- name: 'Publish'
50+
run: |
51+
NODE_AUTH_TOKEN="" npm publish --provenance --access=public

.github/workflows/publish.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ jobs:
2929
bun-version: latest
3030
registry-url: "https://registry.npmjs.org"
3131

32-
- uses: actions/setup-node@v4
32+
- uses: actions/setup-node@v5
3333
with:
34-
node-version: '20.x'
34+
node-version: '24.x'
3535
registry-url: 'https://registry.npmjs.org'
3636

3737
- name: Install packages
@@ -44,7 +44,5 @@ jobs:
4444
run: bun run test
4545

4646
- name: 'Publish'
47-
env:
48-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4947
run: |
50-
npm publish --provenance --access=public
48+
NODE_AUTH_TOKEN="" npm publish --provenance --access=public

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 1.4.1 - 24 Apr 2026
2+
Chore:
3+
- Publish under @elysia scope
14

25
# 1.3.0-exp.0 - 23 Apr 2025
36
Change:

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
# @elysiajs/server-timing
2-
Plugin for [elysia](https://github.com/elysiajs/elysia) for performance audit via [server timing](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server-Timing)
1+
# @elysia/server-timing
2+
[Elysia](https://github.com/elysiajs/elysia) Elysia plugin to integrate [Server-Timing](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server-Timing)
33

44
## Installation
55
```bash
6-
bun add @elysiajs/server-timing
6+
bun add @elysia/server-timing
7+
```
8+
9+
## Example
10+
```typescript twoslash
11+
import { Elysia } from 'elysia'
12+
import { serverTiming } from '@elysiajs/server-timing'
13+
14+
new Elysia()
15+
.use(serverTiming())
16+
.get('/', () => 'hello')
17+
.listen(3000)
718
```
819

920
Please refers to the [documentation](https://elysiajs.com/plugins/server-timing) on how to use the package

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "@elysiajs/server-timing",
3-
"version": "1.4.0",
4-
"description": "Plugin for Elysia for performance audit via server timing",
2+
"name": "@elysia/server-timing",
3+
"version": "1.4.1",
4+
"description": "Elysia plugin to integrate Server-Timing",
55
"author": {
66
"name": "saltyAom",
77
"url": "https://github.com/SaltyAom",
@@ -46,4 +46,4 @@
4646
"tsup": "^8.1.0",
4747
"typescript": "^5.5.3"
4848
}
49-
}
49+
}

0 commit comments

Comments
 (0)