Skip to content

Commit ab19238

Browse files
committed
ci: avoid publish to npm as well as jsr
1 parent 317b27a commit ab19238

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.github/workflows/release-beta.yml

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
- name: Install dependencies
2424
run: pnpm i --frozen-lockfile
2525

26+
- name: JSR pre run
27+
run: npx jsr publish --dry-run
28+
2629
- name: Build
2730
run: pnpm build
2831

.github/workflows/release.yml

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
- name: Test
3030
run: pnpm test
3131

32+
- name: JSR pre run
33+
run: npx jsr publish --dry-run
34+
3235
- name: Build
3336
run: pnpm build
3437

src/djb2.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const djb2 = function djb2(toHash: string) {
1+
export const djb2 = function djb2(toHash: string): string {
22
let hash = 5381
33
let c
44

src/sdbm.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export function sdbm(toHash: string) {
1+
export function sdbm(toHash: string): string {
22
let hash = BigInt(0)
33
let c
44

@@ -10,7 +10,7 @@ export function sdbm(toHash: string) {
1010
return '' + hash
1111
}
1212

13-
export function sdbmGawk(toHash: String) {
13+
export function sdbmGawk(toHash: string): string {
1414
let hash = BigInt(0)
1515

1616
for (let i = 0; i < toHash.length; i++)

0 commit comments

Comments
 (0)