From 62be05f5b2f202229f2f1a012fd49d2bbe2132bb Mon Sep 17 00:00:00 2001 From: Zach Nussbaum Date: Thu, 14 Nov 2024 19:20:59 -0500 Subject: [PATCH] fix: install package lock --- .github/workflows/release-please.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index b42ab97..a7522de 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -27,8 +27,19 @@ jobs: ref: ${{ github.event.workflow_run.head_branch }} if: ${{ steps.release.outputs.release_created }} - - run: npm ci - - run: npm run build + # Generate package-lock.json first + - name: Generate package-lock.json + if: ${{ steps.release.outputs.release_created }} + run: npm install --package-lock-only + + # Now npm ci should work + - name: Install dependencies + if: ${{ steps.release.outputs.release_created }} + run: npm ci + + - name: Build + if: ${{ steps.release.outputs.release_created }} + run: npm run build - name: Publish to NPM run: npm publish