Skip to content

Commit 114c28f

Browse files
committed
ci: use shared apify/workflows/pnpm-install in version_docs
1 parent 56edb8d commit 114c28f

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/manual_version_docs.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,14 @@ jobs:
4242
permissions:
4343
contents: write
4444

45+
defaults:
46+
run:
47+
working-directory: website
48+
4549
steps:
4650
- name: Determine checkout ref
4751
id: resolve_ref
52+
working-directory: .
4853
env:
4954
INPUT_REF: ${{ inputs.ref }}
5055
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
@@ -75,21 +80,14 @@ jobs:
7580

7681
- name: Install Python dependencies
7782
run: uv run poe install-dev
83+
working-directory: .
7884

79-
- name: Install pnpm
80-
uses: pnpm/action-setup@v4.1.0
81-
with:
82-
run_install: false
83-
84-
- name: Install website dependencies
85-
run: pnpm install --frozen-lockfile --prefer-offline
86-
working-directory: website
85+
- name: Install pnpm and website dependencies
86+
uses: apify/workflows/pnpm-install@main
8787

8888
- name: Snapshot the current version
8989
id: snapshot
9090
run: |
91-
cd website
92-
9391
# Extract version from pyproject.toml.
9492
FULL_VERSION="$(uv version --short)"
9593
MAJOR_MINOR_VERSION="$(echo "$FULL_VERSION" | cut -d. -f1-2)"

0 commit comments

Comments
 (0)