Skip to content

Commit 7cd320e

Browse files
committed
fix: duel publish to npm and jsr
1 parent b63b0b8 commit 7cd320e

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525

2626
steps:
2727
- uses: actions/checkout@v4
28+
with:
29+
ref: master
2830

2931
- name: Publish package
3032
run: npx jsr publish

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# read-env-value
22

3-
[![JSR](https://jsr.io/badges/@eggjs/read-env-value)](https://jsr.io/@eggjs/read-env-value)
4-
[![JSR Score](https://jsr.io/badges/@eggjs/read-env-value/score)](https://jsr.io/@eggjs/read-env-value)
3+
[![JSR](https://jsr.io/badges/@nm/read-env-value)](https://jsr.io/@nm/read-env-value)
4+
[![JSR Score](https://jsr.io/badges/@nm/read-env-value/score)](https://jsr.io/@nm/read-env-value)
55
[![NPM Version](https://img.shields.io/npm/v/read-env-value)](https://www.npmjs.com/package/read-env-value)
66
[![NPM Downloads](https://img.shields.io/npm/dm/read-env-value)](https://www.npmjs.com/package/read-env-value)
77
[![NPM License](https://img.shields.io/npm/l/read-env-value)](https://github.com/node-modules/read-env-value/blob/master/LICENSE)

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"preci": "npm run lint",
3737
"ci": "c8 -r html -r lcov -r text npm test",
3838
"postci": "npm run prepublishOnly",
39+
"postversion": "npx sync-npm-version-to-jsr && git add jsr.json",
3940
"prepublishOnly": "tsc -b --clean && tsc",
4041
"prepare": "husky"
4142
},

0 commit comments

Comments
 (0)