semantic-release-action: Command failed: npm install semantic-release

Describe the bug Today i run it and had this error:

Run cycjimmy/semantic-release-action@v2

added 2 packages, and audited 3 packages in 963ms

found 0 vulnerabilities


Error: Error: Command failed: npm install @semantic-release/changelog @semantic-release/git @semantic-release/exec --silent

Workflow No change on the worklow file, was passing 3 days ago.

Expected behavior Not fail like in the last months

Additional context Download action repository ‘actions/checkout@v2’ (SHA:5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f) Download action repository ‘cycjimmy/semantic-release-action@v2’ (SHA:116647291d9b7bef1f5a4315deedd3f46ed4218b)

How i can debug this?

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 7
  • Comments: 17 (3 by maintainers)

Commits related to this issue

Most upvoted comments

@pegiadise I don’t think it’s the reason.

This worked for me:

      - name: 🚀 Release
        uses: cycjimmy/semantic-release-action@v2
        id: semantic
        with:
          semantic_version: 18
          extra_plugins: |
            @semantic-release/changelog@6
            @semantic-release/git@10
            conventional-changelog-conventionalcommits@4.6.1

i believe its the git plugin that is causing the issue. The latest version (10.0.0) has a dependency on semantic-release@18.0.0 so it you havent fixed the plugin version then it could be throwing an error with this by trying to grab the latest version, yet all other plugins havent been updated to support (they were reporting support <= 18.0.0). I set the @semantic-release/git@9.0.1 to resolve things and work around the conflict here.

looks like you need to add

        with:
          semantic_version: 17

to your action

Got the same error

Fixed by specifying a setup-node step and it works now

      - uses: actions/checkout@v2

      - uses: actions/setup-node@v2
        with:
          node-version: '14'

      - name: Semantic Release
        uses: cycjimmy/semantic-release-action@v2.5.4
        with:
          semantic_version: 18.0.0
          extra_plugins: |
            @semantic-release/commit-analyzer@8.0.1
            @semantic-release/release-notes-generator@9.0.3
            @semantic-release/changelog@5.0.1
            @semantic-release/github@7.2.3
            @semantic-release/git@9.0.0

Yeah that’s how I found it. I’m not sure why --silent is added by default but this should definitely be documented.