From a547ec4fb19c4f5e0fca2814419e6bc9f322dcfc Mon Sep 17 00:00:00 2001 From: Farhad Jay Date: Sat, 16 Nov 2024 21:19:41 -0800 Subject: [PATCH] Fix error when publishing new version A recent PR modified the `prepare` script to use `shx` for Windows interoperability. The `prepare` script is special in that npm always runs it before `npm publish`. This resulted in an error during the execution of our "bump and release" workflow because the workflow doesn't install any Node dependencies. Simply installing Node dependencies in the workflow fixes the issue. This has the added benefit of catching any last-second formatting or linter errors that slipped through the cracks. --- .github/workflows/bump-and-release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/bump-and-release.yml b/.github/workflows/bump-and-release.yml index 861b1447..fcd41145 100644 --- a/.github/workflows/bump-and-release.yml +++ b/.github/workflows/bump-and-release.yml @@ -24,6 +24,9 @@ jobs: node-version: 20 registry-url: https://registry.npmjs.org + - name: Install Node.js dependencies + run: npm ci + - name: Bump version id: bump env: