Skip to content

Commit

Permalink
downgrade npm on publish as temp fix (#1523)
Browse files Browse the repository at this point in the history
downgrade the version of npm on the publish step to ensure that publish
doesn't give an ENOWORKSPACES error

This should be considered a temporary solution to getting publish
working again and a better solution needs to be found.

Signed-off-by: Dave Kelsey <d_kelsey@uk.ibm.com>
  • Loading branch information
davidkel committed Apr 3, 2024
1 parent 7477c70 commit 4bdb98c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .build/publish-caliper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ cp ./README.md ./packages/caliper-fabric/README.md

cd ./packages/caliper-publish/
npm ci
# temporary workaround to downgrade npm in order to publish
npm install -g npm@8.19.4
./publish.js npm
./publish.js docker --publish
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18.x
- name: Publish Caliper
run: .build/publish-caliper.sh
env:
Expand Down

0 comments on commit 4bdb98c

Please sign in to comment.