File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -153,6 +153,12 @@ jobs:
153153 '.version = .version + "-dev." + $build + "+" + $commit' \
154154 deno.json > deno.json.tmp
155155 mv deno.json.tmp deno.json
156+ jq \
157+ --arg build "$GITHUB_RUN_NUMBER" \
158+ --arg commit "${GITHUB_SHA::8}" \
159+ '.version = .version + "-dev." + $build + "+" + $commit' \
160+ package.json > package.json.tmp
161+ mv package.json.tmp package.json
156162 working-directory : ${{ github.workspace }}/fedify/
157163 - if : github.ref_type == 'tag'
158164 run : |
Original file line number Diff line number Diff line change 33Fedify changelog
44================
55
6- Version 1.6.0
6+ Version 1.6.1
77-------------
88
9- To be released.
9+ To be released. Note that 1.6.0 was skipped due to a mistake in the versioning.
1010
1111 - Added ` Context.lookupWebFinger() ` method to make WebFinger lookups
1212 accessible from the context. [[ #227 ]]
Original file line number Diff line number Diff line change 11{
22 "name" : " @fedify/cli" ,
3- "version" : " 1.6.0 " ,
3+ "version" : " 1.6.1 " ,
44 "license" : " MIT" ,
55 "exports" : " ./mod.ts" ,
66 "imports" : {
2020 "hono" : " jsr:@hono/hono@^4.5.9" ,
2121 "icojs" : " npm:icojs@^0.19.4" ,
2222 "jimp" : " npm:jimp@^1.6.0" ,
23- "json-preserve-indent" : " npm:json-preserve-indent@^1.1.3" ,
2423 "ora" : " npm:ora@^8.0.1" ,
2524 "shiki" : " npm:shiki@^1.6.4"
2625 },
Original file line number Diff line number Diff line change 1010 "@logtape/logtape" : " jsr:@logtape/logtape@^0.10.0" ,
1111 "@std/fs" : " jsr:@std/fs@^1.0.3" ,
1212 "@std/path" : " jsr:@std/path@^1.0.6" ,
13+ "json-preserve-indent" : " npm:json-preserve-indent@^1.1.3" ,
1314 "preact" : " npm:preact@10.19.6"
1415 },
1516 "unstable" : [
2021 ],
2122 "tasks" : {
2223 "codegen" : " deno task -f @fedify/cli codegen" ,
23- "check" : " deno task -f @fedify/fedify check && deno task -f @fedify/cli check && deno task -f @fedify/blog check && deno task -f @fedify/hono-sample check" ,
24+ "check" : {
25+ "command" : " deno task -f @fedify/fedify check && deno task -f @fedify/cli check && deno task -f @fedify/blog check && deno task -f @fedify/hono-sample check" ,
26+ "dependencies" : [
27+ " check-version"
28+ ]
29+ },
30+ "check-version" : " deno task -f @fedify/fedify check-version" ,
2431 "test-all" : " deno task -f @fedify/fedify test-all && deno task -f @fedify/cli check && deno task -f @fedify/blog check && deno task -f @fedify/hono-sample check" ,
2532 "publish" : " deno task -f @fedify/fedify publish && deno task -f @fedify/cli publish" ,
2633 "cli" : " deno task -f @fedify/cli run" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @fedify/fedify" ,
3- "version" : " 1.6.0 " ,
3+ "version" : " 1.6.1 " ,
44 "license" : " MIT" ,
55 "exports" : {
66 "." : " ./mod.ts" ,
5757 "tasks" : {
5858 "codegen" : " deno run --allow-read --allow-write --check codegen/main.ts vocab/ ../runtime/ > vocab/vocab.ts && deno fmt vocab/vocab.ts && deno cache vocab/vocab.ts && deno check vocab/vocab.ts" ,
5959 "check-version" : " deno run --allow-read=package.json scripts/check_version.ts && deno run ../cli/scripts/check_version.ts" ,
60+ "sync-version" : " deno run --allow-read=package.json --allow-write=package.json scripts/sync_version.ts && deno run --allow-read=../cli/deno.json --allow-write=../cli/deno.json ../cli/scripts/sync_version.ts" ,
6061 "cache" : {
6162 "command" : " deno cache mod.ts" ,
6263 "dependencies" : [
9293 "publish" : {
9394 "command" : " deno publish" ,
9495 "dependencies" : [
96+ " check-version" ,
9597 " codegen"
9698 ]
9799 },
106108 "npm" : {
107109 "command" : " pnpm pack" ,
108110 "dependencies" : [
111+ " sync-version" ,
109112 " pnpm:install"
110113 ]
111114 },
Original file line number Diff line number Diff line change 11{
22 "name" : " @fedify/fedify" ,
3- "version" : " 1.6.0 " ,
3+ "version" : " 1.6.1 " ,
44 "description" : " An ActivityPub server framework" ,
55 "keywords" : [
66 " ActivityPub" ,
111111 },
112112 "scripts" : {
113113 "build" : " deno task codegen && tsdown" ,
114- "prepack" : " deno task codegen && tsdown" ,
115- "prepublish" : " deno task codegen && tsdown" ,
114+ "prepack" : " deno task codegen && tsdown && deno task check-version " ,
115+ "prepublish" : " deno task codegen && tsdown && deno task check-version " ,
116116 "test" : " deno task codegen && tsdown && cd dist/ && node --test" ,
117117 "test:bun" : " deno task codegen && tsdown && cd dist/ && bun test --timeout 60000"
118118 }
Original file line number Diff line number Diff line change 1+ import jsonPreserveIndent from "json-preserve-indent" ;
2+ import metadata from "../deno.json" with { type : "json" } ;
3+
4+ const packageJsonPath = `${ import . meta. dirname } /../package.json` ;
5+ const packageJson = await Deno . readTextFile ( packageJsonPath ) ;
6+ const data = jsonPreserveIndent ( packageJson ) ;
7+ data . set ( "version" , metadata . version ) ;
8+ await Deno . writeTextFile ( packageJsonPath , data . format ( ) ) ;
You can’t perform that action at this time.
0 commit comments