Skip to content

Commit

Permalink
Fix publishing (#9)
Browse files Browse the repository at this point in the history
* Remove build step

* Build package correctly

* Build package before publishing to JSR

* add a jsr file

* remove TODO
  • Loading branch information
koddsson authored Mar 29, 2024
1 parent c3732f4 commit e2f676a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 29 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,7 @@ on:
types: [created, workflow_dispatch]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 21
- run: npm ci
- run: npx playwright install
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -29,7 +17,7 @@ jobs:
node-version: 21
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm build
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
Expand All @@ -43,6 +31,10 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Publish package
run: npx jsr publish
- uses: actions/setup-node@v4
with:
node-version: 21
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npx jsr publish
13 changes: 0 additions & 13 deletions TODO.md

This file was deleted.

5 changes: 5 additions & 0 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@koddsson/context-protocol",
"version": "0.0.2",
"exports": "./index.ts"
}

0 comments on commit e2f676a

Please sign in to comment.