Skip to content

Commit 23e0b22

Browse files
committed
fix version setting in ci
1 parent 2efdc76 commit 23e0b22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
cache: npm
1919
- run: npm ci
2020
- name: Set version in src/version.js
21-
run: echo "export const version = '${GITHUB_REF_NAME#v}';" > src/version.js
21+
run: echo "export const version = '${GITHUB_REF_NAME#v}';" > src/version.ts
2222
- run: |
2323
npm version --no-git-tag-version ${GITHUB_REF_NAME#v}
2424
npm publish

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { version } from './version'
1+
import { version } from './version.js'
22
import type { Fetch, ErrorResponse } from './interfaces.js'
33

44
class ResponseError extends Error {

0 commit comments

Comments
 (0)