From 31db38d73e09c6b17ed1aa96d6168d08eeddf5d5 Mon Sep 17 00:00:00 2001 From: Talisson Costa Date: Fri, 6 Feb 2026 10:16:54 -0300 Subject: [PATCH] fix(ci): install dependencies in publish job for prepack script The publish job was failing because backstage-cli was not available when npm publish triggered the prepack lifecycle script. Co-Authored-By: Claude Opus 4.5 --- .github/workflows/publish-release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index a881f26..1f2b4af 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -62,6 +62,10 @@ jobs: with: node-version: '22' registry-url: 'https://registry.npmjs.org' + cache: 'yarn' + + - name: Install dependencies + run: yarn install --frozen-lockfile - name: Publish to NPM - run: npm publish --access public + run: npm publish --access public --provenance