semantic-release-action
semantic-release-action copied to clipboard
Error: Error: Command failed: npm install
I have the following workflow config:
name: Semantic Release
on:
push:
branches: [main]
jobs:
release:
name: Release version
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.SEMANTIC_RELEASE_GH_TOKEN }}
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/commit-analyzer
@semantic-release/git
@semantic-release/npm
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GH_TOKEN }}
But it fails:
Run cycjimmy/semantic-release-action@v3
with:
extra_plugins: @semantic-release/changelog
@semantic-release/commit-analyzer
@semantic-release/git
@semantic-release/npm
env:
GITHUB_TOKEN: ***
added 317 packages, and audited 518 packages in 6s
44 packages are looking for funding
run `npm fund` for details
1 high severity vulnerability
To address all issues, run:
npm audit fix
Run `npm audit` for details.
Error: Error: Command failed: npm install @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/git @semantic-release/npm --silent
same thing here
Run cycjimmy/semantic-release-action@v3
with:
extra_plugins: @semantic-release/changelog
@semantic-release/git
@semantic-release/commit-analyzer
@semantic-release/github
@semantic-release/npm
@semantic-release/release-notes-generator
env:
CPM_SOURCE_CACHE: /home/runner/work/mobagen/mobagen/cpm_modules
GITHUB_TOKEN: ***
added [3](https://github.com/InfiniBrains/mobagen/actions/runs/4548042337/jobs/8018665533#step:4:3)17 packages, and audited 518 packages in [4](https://github.com/InfiniBrains/mobagen/actions/runs/4548042337/jobs/8018665533#step:4:4)s
44 packages are looking for funding
run `npm fund` for details
1 high severity vulnerability
To address all issues, run:
npm audit fix
Run `npm audit` for details.
Error: Error: Command failed: npm install @semantic-release/changelog @semantic-release/git @semantic-release/commit-analyzer @semantic-release/github @semantic-release/npm @semantic-release/release-notes-generator --silent
I disabled npm-audit. Try again using the latest.
@cycjimmy still fails:
8s
Run cycjimmy/[email protected]
with:
extra_plugins: @semantic-release/changelog
@semantic-release/commit-analyzer
@semantic-release/git
@semantic-release/npm
env:
GITHUB_TOKEN: ***
added 317 packages, and audited 518 packages in 5s
44 packages are looking for funding
run `npm fund` for details
1 high severity vulnerability
To address all issues, run:
npm audit fix
Run `npm audit` for details.
Error: Error: Command failed: npm install @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/git @semantic-release/npm --no-audit --silent```
Was able to work around this by downgrading the node version to v14 from v16. Version 18 also failed. This is suboptimal as node v14 is going out of support very soon.
Someone at Google also found the same workaround and implemented it.
- uses: actions/setup-node@v3
with:
node-version: 14
This would have been easier to identify if the --silent
flag respected debugging flags.
I was able to resolve the error by upgrading to v3 version (initially we used v2) of the action and downgrading to node v14 with setup node action
i also experienced this. got it working by downgrading action to cycjimmy/[email protected]
.
here's my config with node: v18
- name: Semantic release
id: release
uses: cycjimmy/[email protected]
with:
semantic_version: 18
extra_plugins: |
@semantic-release/release-notes-generator@^10
@semantic-release/github@^8
conventional-changelog-conventionalcommits@^5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
and previously failed action #4991193617.
I think the latest v3
changes cause this problem.
Hi,
It seems like a fix has been pushed to fix this issue but it is still not working. Do I miss something ?
--> Run cycjimmy/[email protected]
added 317 packages, and audited 518 packages in 5s
44 packages are looking for funding
run `npm fund` for details
1 high severity vulnerability
To address all issues, run:
npm audit fix
Run `npm audit` for details.
Error: Error: Command failed: npm install @semantic-release/changelog @semantic-release/git @semantic-release/github --no-audit --silent
For me it seems to have been due to the (peer)dependencies of the extra_plugins
. For example, I bumped semantic_version
to 21
while still using [email protected]
which has its peerDependency on semantic-release
set to >=11.0.0 <20.0.0
(meaning 21 is not in range, hence the error).
I am also facing same issue. Also it was working just couple of days ago and now suddenly it stopped working
added [31]()7 packages, and audited 518 packages in 8s
44 packages are looking for funding
run `npm fund` for details
5 vulnerabilities (4 moderate, 1 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
Error: Error: Command failed: npm install @semantic-release/[email protected] @semantic-release/[email protected] @semantic-release/[email protected] @semantic-release/[email protected] @semantic-release/[email protected] semantic-release-major-tag semantic-release-monorepo semantic-release-pnpm [email protected] [email protected] [email protected] --no-audit --silent
https://github.com/cycjimmy/semantic-release-action/issues/159#issuecomment-1903340065
About my comment earlier, it was a package that got updated 5 days ago - semantic-release-monorepo I hardcoded to use the old version for this package and it works fine now.