Skip to content

Commit c168449

Browse files
author
Lasim
committed
chore(workflows): update backend release workflow to install dependencies from root
1 parent cee148e commit c168449

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/backend-release-pr.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ permissions:
2323
jobs:
2424
releaseIt:
2525
runs-on: ubuntu-latest
26-
defaults:
27-
run:
28-
working-directory: services/backend
2926
steps:
3027
- uses: actions/checkout@v4
3128
with:
@@ -41,8 +38,16 @@ jobs:
4138
with:
4239
node-version: 20
4340
cache: npm
44-
- run: npm ci
41+
42+
# Install dependencies from root (same as frontend pipeline)
43+
- name: Install dependencies
44+
run: |
45+
npm ci || {
46+
echo "npm ci failed, trying clean install..."
47+
npm install --no-optional
48+
}
4549
- name: Prepare release
50+
working-directory: services/backend
4651
env:
4752
GITHUB_TOKEN: ${{ secrets.APP_INSTALLATION_TOKEN }}
4853
TYPE_ARG: ${{ fromJSON('{"patch":"patch", "minor":"minor", "major":"major"}')[github.event.inputs.type] }}

0 commit comments

Comments
 (0)