We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2efdc76 commit 23e0b22Copy full SHA for 23e0b22
.github/workflows/publish.yaml
@@ -18,7 +18,7 @@ jobs:
18
cache: npm
19
- run: npm ci
20
- name: Set version in src/version.js
21
- run: echo "export const version = '${GITHUB_REF_NAME#v}';" > src/version.js
+ run: echo "export const version = '${GITHUB_REF_NAME#v}';" > src/version.ts
22
- run: |
23
npm version --no-git-tag-version ${GITHUB_REF_NAME#v}
24
npm publish
src/utils.ts
@@ -1,4 +1,4 @@
1
-import { version } from './version'
+import { version } from './version.js'
2
import type { Fetch, ErrorResponse } from './interfaces.js'
3
4
class ResponseError extends Error {
0 commit comments