diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 00551ff..30f5f8c 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -18,7 +18,7 @@ jobs: cache: npm - run: npm ci - name: Set version in src/version.js - run: echo "export const version = '${GITHUB_REF_NAME#v}';" > src/version.js + run: echo "export const version = '${GITHUB_REF_NAME#v}';" > src/version.ts - run: | npm version --no-git-tag-version ${GITHUB_REF_NAME#v} npm publish diff --git a/src/utils.ts b/src/utils.ts index d082440..73543bc 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,4 +1,4 @@ -import { version } from './version' +import { version } from './version.js' import type { Fetch, ErrorResponse } from './interfaces.js' class ResponseError extends Error {