Skip to content

Commit 74d1a8e

Browse files
committed
ci: Sync jsr.json version
1 parent ec62b3c commit 74d1a8e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,10 @@ jobs:
3131
env:
3232
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3333
- run: npm publish
34+
- name: Sync JSR version
35+
run: |
36+
node -e 'const fs = require("fs"); const ver = require("./package.json").version; let content = fs.readFileSync("jsr.json", "utf8"); fs.writeFileSync("jsr.json", content.replace(/(version"\s*:\s*")[^"]*(")/, `$1${ver}$2`))'
37+
git add jsr.json
38+
git commit -m "sync \`jsr.json\` version"
39+
git push
3440
- run: bunx jsr publish

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://jsr.io/schema/config-file.v1.json",
33
"name": "@aklinker1/zero-factory",
4-
"version": "1.1.1",
4+
"version": "1.1.2",
55
"exports": "./src/index.ts",
66
"publish": {
77
"include": ["src", "README.md"],

0 commit comments

Comments
 (0)