Skip to content

"syntax error: invalid arithmetic operator" in log after npm publish #417

@mbtools

Description

@mbtools

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The "Release Integration > Publish" action includes the npm publish command. The corresponding action log contains the following error:

/home/runner/work/_temp/570d07ac-66bd-47e2-805d-030313533c8a.sh: line 14: [[: + semver@7.6.0
0: syntax error: invalid arithmetic operator (error token is "@7.6.0
0")

Example:

https://github.com/npm/node-semver/actions/runs/7788106733/job/21236934252

image

Expected Behavior

No error in log

Steps To Reproduce

Run "Release Integration > Publish" workflow

https://github.com/npm/node-semver/blob/main/.github/workflows/release-integration.yml

Environment

  • github.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions