From 23e0b224185c5c09a635bbea9315daa15f042c86 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Sun, 25 Feb 2024 14:09:31 -0500 Subject: [PATCH] fix version setting in ci --- .github/workflows/publish.yaml | 2 +- src/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {