Skip to content

Commit

Permalink
fix npm publish attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs224 committed May 17, 2024
1 parent 196fbe8 commit 064ff78
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 22 deletions.
41 changes: 20 additions & 21 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,26 @@ on:
types: [published]

jobs:
# npm:
# runs-on: ubuntu-latest
# permissions:
# contents: read
# id-token: write
# 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 }}
npm:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
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
run: cd npm && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

jsr:
runs-on: ubuntu-latest
Expand Down
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.6",
"version": "0.5.7",
"exports": "./mod.ts"
}

0 comments on commit 064ff78

Please sign in to comment.