Skip to content

Commit 38a03c0

Browse files
committed
docs: Migrate from npm to yarn
1 parent a78478e commit 38a03c0

6 files changed

Lines changed: 18514 additions & 26823 deletions

File tree

‎.github/workflows/_release_docs.yaml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ jobs:
3838
uses: actions/setup-node@v6
3939
with:
4040
node-version: ${{ env.NODE_VERSION }}
41-
cache: npm
42-
cache-dependency-path: website/package-lock.json
41+
cache: yarn
42+
cache-dependency-path: website/yarn.lock
4343

4444
- name: Install Node dependencies
4545
run: |
46-
npm install
47-
npm update @apify/docs-theme
46+
yarn install
47+
yarn upgrade @apify/docs-theme
4848
working-directory: ./website
4949

5050
# We do this as early as possible to prevent conflicts if someone else would push something in the meantime
@@ -53,7 +53,7 @@ jobs:
5353
git config user.name 'GitHub Actions'
5454
git config user.email 'github-actions[bot]@users.noreply.github.com'
5555
git add website/package.json
56-
git add website/package-lock.json
56+
git add website/yarn.lock
5757
git diff-index --quiet HEAD || git commit -m 'chore: Automatic docs theme update [skip ci]' || true
5858
git push
5959

‎pyproject.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ shell = "uv run ruff format --check && uv run ruff check"
205205
shell = "uv run ruff check --fix && uv run ruff format"
206206

207207
[tool.poe.tasks.build-docs]
208-
shell = "./build_api_reference.sh && npm ci && npm run build"
208+
shell = "./build_api_reference.sh && corepack enable && yarn && uv run yarn build"
209209
cwd = "website"
210210

211211
[tool.poe.tasks.run-docs]
212-
shell = "./build_api_reference.sh && npm ci && npm run start"
212+
shell = "./build_api_reference.sh && corepack enable && yarn && uv run yarn start"
213213
cwd = "website"

‎website/.yarnrc.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
nodeLinker: node-modules
2+
enableGlobalCache: true

0 commit comments

Comments
 (0)