Skip to content

Commit 03ab16f

Browse files
authored
chore: Fix NPM publishing workflow (#1434)
Our publishing workflow was unable to execute `lerna publish` to publish our npm packages because its method of execution `npm bin` is not supported anymore. This stackoverflow article for more context: https://stackoverflow.com/questions/9679932/how-to-use-executables-from-a-package-installed-locally-in-node-modules - Switching to using `npx`. I confirmed locally that `npx lerna -h` works which means other lerna commands should work. (unable to do publishing dry run because our version of lerna is too old, and doesn't have that option)
1 parent d1fc51f commit 03ab16f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/lerna-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,6 @@ jobs:
8484
${{ github.workspace }}/.github/scripts/wait_for_looker.sh
8585
8686
- name: Publish to NPM registry
87-
run: $(npm bin)/lerna publish from-package --yes --no-verify-access
87+
run: npx lerna publish from-package --yes --no-verify-access
8888
env:
8989
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_RELEASE_BACKED }}

0 commit comments

Comments
 (0)