Skip to content

Commit

Permalink
attempt jsr and npm github actions publish
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs224 committed May 14, 2024
1 parent d8b8391 commit dd072a9
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish
on:
release:
types: [published]

jobs:
npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- uses: denoland/setup-deno@v1
with:
deno-version: v1.43.1
- name: Build NPM Package
run: deno run -A scripts/build_npm.ts ${{ github.event.release.tag_name }}
- name: Publish to NPM
working-directory: ./npm
run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

jsr:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.43.1
run: deno publish
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@jcs224/hono-sessions",
"version": "0.5.1",
"version": "0.5.2",
"exports": "./mod.ts"
}

0 comments on commit dd072a9

Please sign in to comment.