Skip to content

Commit

Permalink
fix version setting in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jmorganca committed Feb 25, 2024
1 parent 2efdc76 commit 23e0b22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { version } from './version'
import { version } from './version.js'
import type { Fetch, ErrorResponse } from './interfaces.js'

class ResponseError extends Error {
Expand Down

0 comments on commit 23e0b22

Please sign in to comment.