Skip to content

Commit

Permalink
version 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs224 committed Oct 27, 2024
1 parent 706ae82 commit 4405ad5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
deno-version: "2.0.0"
- name: Build NPM Package
run: deno run -A scripts/build_npm.ts ${{ github.event.release.tag_name }}
run: deno run -A scripts/build_npm.ts
- name: Publish to NPM
run: cd npm && npm publish --provenance
env:
Expand Down
5 changes: 3 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "@jcs224/hono-sessions",
"version": "0.6.1",
"version": "0.7.0",
"exports": "./mod.ts",
"imports": {
"@deno/dnt": "jsr:@deno/dnt@^0.41.3"
"@deno/dnt": "jsr:@deno/dnt@^0.41.3",
"@std/path": "jsr:@std/path@^1.0.7"
}
}
12 changes: 9 additions & 3 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion scripts/build_npm.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// ex. scripts/build_npm.ts
import { build, emptyDir } from "@deno/dnt";
import { fromFileUrl, dirname } from '@std/path'

const version = JSON.parse(await Deno.readTextFile(dirname(fromFileUrl(import.meta.url)) + '/../deno.json')).version

await emptyDir("./npm");

Expand All @@ -17,7 +20,7 @@ await build({
package: {
// package.json properties
name: "hono-sessions",
version: Deno.args[0]?.replace('v', ''),
version,
description: "Cookie-based sessions for Hono web framework",
license: "MIT",
repository: {
Expand Down

0 comments on commit 4405ad5

Please sign in to comment.