Skip to content

Commit e2f676a

Browse files
authored
Fix publishing (#9)
* Remove build step * Build package correctly * Build package before publishing to JSR * add a jsr file * remove TODO
1 parent c3732f4 commit e2f676a

File tree

3 files changed

+13
-29
lines changed

3 files changed

+13
-29
lines changed

.github/workflows/npm-publish.yml

+8-16
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,7 @@ on:
88
types: [created, workflow_dispatch]
99

1010
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v4
15-
- uses: actions/setup-node@v4
16-
with:
17-
node-version: 21
18-
- run: npm ci
19-
- run: npx playwright install
20-
- run: npm test
21-
2211
publish-npm:
23-
needs: build
2412
runs-on: ubuntu-latest
2513
steps:
2614
- uses: actions/checkout@v4
@@ -29,7 +17,7 @@ jobs:
2917
node-version: 21
3018
registry-url: https://registry.npmjs.org/
3119
- run: npm ci
32-
- run: npm build
20+
- run: npm run build
3321
- run: npm publish
3422
env:
3523
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
@@ -43,6 +31,10 @@ jobs:
4331

4432
steps:
4533
- uses: actions/checkout@v4
46-
47-
- name: Publish package
48-
run: npx jsr publish
34+
- uses: actions/setup-node@v4
35+
with:
36+
node-version: 21
37+
registry-url: https://registry.npmjs.org/
38+
- run: npm ci
39+
- run: npm run build
40+
- run: npx jsr publish

TODO.md

-13
This file was deleted.

jsr.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "@koddsson/context-protocol",
3+
"version": "0.0.2",
4+
"exports": "./index.ts"
5+
}

0 commit comments

Comments
 (0)