Skip to content

Commit 94024b0

Browse files
authored
chore: fix publishing step (ConsenSys-archive#4515)
1 parent 12a0f34 commit 94024b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ jobs:
102102

103103
- name: Update package versions for latest release (master)
104104
if: ${{ env.TAG == 'latest' }}
105-
run: $(npm bin)/lerna version "$RELEASE_KIND" --no-git-tag-version --no-push --yes --exact
105+
run: npx -y lerna@4.0.0 version "$RELEASE_KIND" --no-git-tag-version --no-push --yes --exact
106106

107107
- name: Update package versions for pre-releases
108108
if: ${{ env.TAG != 'latest' }}
109-
run: $(npm bin)/lerna version prerelease --no-git-tag-version --no-push --yes --exact --preid "$TAG"
109+
run: npx -y lerna@4.0.0 version prerelease --no-git-tag-version --no-push --yes --exact --preid "$TAG"
110110

111111
- name: Add updated versions to git
112112
run: git add .
@@ -154,7 +154,7 @@ jobs:
154154
# this needs `--no-verify-access` until https://github.com/lerna/lerna/issues/2788 is fixed
155155
- name: Release to npm
156156
run: |
157-
$(npm bin)/lerna publish from-package --yes --dist-tag ${TAG} --pre-dist-tag ${TAG} --no-verify-access
157+
npx -y lerna@4.0.0 version publish from-package --yes --dist-tag ${TAG} --pre-dist-tag ${TAG} --no-verify-access
158158
env:
159159
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
160160
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)