Skip to content

Commit a140742

Browse files
committed
ci: use shared apify/workflows/pnpm-install in version_docs
Move working-directory to job-level defaults so the composite action's 'pnpm install' runs in website/. Override explicitly for the Python uv step.
1 parent 3550540 commit a140742

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/manual_release_stable.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ jobs:
116116
NODE_VERSION: 22
117117
PYTHON_VERSION: 3.14
118118

119+
defaults:
120+
run:
121+
working-directory: website
122+
119123
steps:
120124
- name: Checkout repository
121125
uses: actions/checkout@v6
@@ -140,19 +144,13 @@ jobs:
140144

141145
- name: Install Python dependencies
142146
run: uv run poe install-dev
147+
working-directory: .
143148

144-
- name: Install pnpm
145-
uses: pnpm/action-setup@v4.1.0
146-
with:
147-
run_install: false
148-
149-
- name: Install website dependencies
150-
run: pnpm install --frozen-lockfile
151-
working-directory: website
149+
- name: Install pnpm and website dependencies
150+
uses: apify/workflows/pnpm-install@main
152151

153152
- name: Snapshot the current version
154153
run: |
155-
cd website
156154
VERSION="$(python -c "import tomllib, pathlib; print(tomllib.loads(pathlib.Path('../pyproject.toml').read_text())['project']['version'])")"
157155
MAJOR_MINOR="$(echo "$VERSION" | cut -d. -f1-2)"
158156
export MAJOR_MINOR

0 commit comments

Comments
 (0)