Skip to content

Commit 4bdb98c

Browse files
authored
downgrade npm on publish as temp fix (#1523)
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>
1 parent 7477c70 commit 4bdb98c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.build/publish-caliper.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,7 @@ cp ./README.md ./packages/caliper-fabric/README.md
2424

2525
cd ./packages/caliper-publish/
2626
npm ci
27+
# temporary workaround to downgrade npm in order to publish
28+
npm install -g npm@8.19.4
2729
./publish.js npm
2830
./publish.js docker --publish

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v3
12-
- name: Use Node.js 16.x
12+
- name: Use Node.js 18.x
1313
uses: actions/setup-node@v3
1414
with:
15-
node-version: 16.x
15+
node-version: 18.x
1616
- name: Publish Caliper
1717
run: .build/publish-caliper.sh
1818
env:

0 commit comments

Comments
 (0)