Skip to content

Error: TypeError: Unable to determine the current version of @owner/repo on NPM. #24

Closed
@cpotter302

Description

@cpotter302

Hello there, I am using npm https://npm.pkg.github.com as my npm package registry. Unfortunately i always get this error when it start my workflow.
Full log comes here:

Run JS-DevTools/npm-publish@v1
with:
token: ***
registry: https://npm.pkg.github.com
check-version: false
package: package.json
tag: latest
dry-run: false
Error: TypeError: Unable to determine the current version of @cpotter302/ubuntu-welcome-page on NPM.
Invalid Version:
at Object.getLatestVersion (/home/runner/work/_actions/JS-DevTools/npm-publish/v1/src/npm.ts:57:13)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at Object.npmPublish (/home/runner/work/_actions/JS-DevTools/npm-publish/v1/src/npm-publish.ts:16:26)
at main (/home/runner/work/_actions/JS-DevTools/npm-publish/v1/src/action/index.ts:28:19)

TypeError: Invalid Version:
at new SemVer (/home/runner/work/_actions/JS-DevTools/npm-publish/v1/dist/node_modules/semver/classes/semver.js:41:13)
at Object.getLatestVersion (/home/runner/work/_actions/JS-DevTools/npm-publish/v1/src/npm.ts:51:20)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at Object.npmPublish (/home/runner/work/_actions/JS-DevTools/npm-publish/v1/src/npm-publish.ts:16:26)
at main (/home/runner/work/_actions/JS-DevTools/npm-publish/v1/src/action/index.ts:28:19)

Activity

RubenVerborgh

RubenVerborgh commented on Dec 7, 2020

@RubenVerborgh

Same error for us: https://github.com/solid/mashlib/runs/1510028311?check_suite_focus=true

The exact same workflow works fine on our other repositories.

JamesMessinger

JamesMessinger commented on Jan 2, 2021

@JamesMessinger
Member

This should now be fixed by PR #19, which was just released as version 1.4.1

RubenVerborgh

RubenVerborgh commented on Jan 2, 2021

@RubenVerborgh

@JamesMessinger Not really, but it is fixed by #25.

added a commit that references this issue on Jan 2, 2021
be95160
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @RubenVerborgh@JamesMessinger@cpotter302

      Issue actions

        Error: TypeError: Unable to determine the current version of @owner/repo on NPM. · Issue #24 · JS-DevTools/npm-publish