Skip to content

Commit 32060ee

Browse files
committed
chore: use yarn
1 parent 295670e commit 32060ee

File tree

11 files changed

+20858
-34825
lines changed

11 files changed

+20858
-34825
lines changed

.github/workflows/docs.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
uses: actions/setup-node@v4
2323
with:
2424
node-version: 22
25-
cache: 'npm'
26-
cache-dependency-path: 'package-lock.json'
25+
cache: 'yarn'
26+
cache-dependency-path: 'yarn.lock'
2727
always-auth: 'true'
2828

2929
- name: Enable corepack
@@ -32,8 +32,8 @@ jobs:
3232
3333
- name: Build docs
3434
run: |
35-
npm ci --force
36-
npm run build
35+
yarn --immutable
36+
yarn build
3737
env:
3838
APIFY_SIGNING_TOKEN: ${{ secrets.APIFY_SIGNING_TOKEN }}
3939
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/openapi.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ jobs:
1818
uses: actions/setup-node@v4
1919
with:
2020
node-version: 22
21-
cache: 'npm'
22-
cache-dependency-path: 'package-lock.json'
21+
cache: 'yarn'
22+
cache-dependency-path: 'yarn.lock'
2323

2424
- name: Enable corepack
2525
run: |
2626
corepack enable
2727
2828
- name: Install Dependencies
29-
run: npm ci --force
29+
run: yarn --immutable
3030
env:
3131
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3232

3333
- run: |
3434
npm ci
35-
npm run redoc:test
35+
yarn redoc:test
3636
3737
# TODO
3838
# - uses: actions/setup-python@v5

.github/workflows/publish-theme.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
uses: actions/setup-node@v4
2222
with:
2323
node-version: 22
24-
cache: 'npm'
25-
cache-dependency-path: 'package-lock.json'
24+
cache: 'yarn'
25+
cache-dependency-path: 'yarn.lock'
2626

2727
- name: Enable corepack
2828
run: |
@@ -49,8 +49,8 @@ jobs:
4949
uses: actions/setup-node@v4
5050
with:
5151
node-version: 22
52-
cache: 'npm'
53-
cache-dependency-path: 'package-lock.json'
52+
cache: 'yarn'
53+
cache-dependency-path: 'yarn.lock'
5454
always-auth: 'true'
5555

5656
- name: Enable corepack

.github/workflows/test.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,25 @@ jobs:
1717
uses: actions/setup-node@v4
1818
with:
1919
node-version: 22
20-
cache: 'npm'
21-
cache-dependency-path: 'package-lock.json'
20+
cache: 'yarn'
21+
cache-dependency-path: 'yarn.lock'
2222
always-auth: 'true'
2323

2424
- name: Enable corepack
2525
run: |
2626
corepack enable
2727
2828
- name: Install Dependencies
29-
run: npm ci --force
29+
run: yarn --immutable
3030
env:
3131
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3232

33-
- run: npm run build
33+
- run: yarn build
3434
env:
3535
INTERCOM_APP_ID: ${{ secrets.INTERCOM_APP_ID }}
3636
SEGMENT_TOKEN: ${{ secrets.SEGMENT_TOKEN }}
3737

38-
- run: npm run start:dev
38+
- run: yarn start:dev
3939

4040
lint_content:
4141
name: Lint markdown content
@@ -56,15 +56,15 @@ jobs:
5656
uses: actions/setup-node@v4
5757
with:
5858
node-version: 22
59-
cache: 'npm'
60-
cache-dependency-path: 'package-lock.json'
59+
cache: 'yarn'
60+
cache-dependency-path: 'yarn.lock'
6161

6262
- name: Enable corepack
6363
run: |
6464
corepack enable
6565
6666
- name: Install Dependencies
67-
run: npm ci --force
67+
run: yarn --immutable
6868
env:
6969
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7070

@@ -89,16 +89,16 @@ jobs:
8989
uses: actions/setup-node@v4
9090
with:
9191
node-version: 22
92-
cache: 'npm'
93-
cache-dependency-path: 'package-lock.json'
92+
cache: 'yarn'
93+
cache-dependency-path: 'yarn.lock'
9494

9595
- name: Enable corepack
9696
run: |
9797
corepack enable
9898
9999
- name: Install Dependencies
100-
run: npm ci --force
100+
run: yarn --immutable
101101
env:
102102
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
103103

104-
- run: npm run lint:code
104+
- run: yarn lint:code

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ coverage
1111
pids
1212
.idea
1313
.vscode
14-
yarn.lock
1514
tmp
1615
types
1716
.history
@@ -23,4 +22,4 @@ sources/api/*
2322
!sources/api/getting-started.mdx
2423
apify-api.yaml
2524
static/api
26-
apify-docs-theme/package-lock.json
25+
**/package-lock.json

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

docusaurus.config.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,8 @@ module.exports = {
1818
projectName: 'apify-docs',
1919
scripts: ['/js/custom.js'],
2020
future: {
21-
experimental_faster: {
22-
// swcJsLoader: true,
23-
swcJsMinimizer: true,
24-
swcHtmlMinimizer: true,
25-
lightningCssMinimizer: true,
26-
rspackBundler: true,
27-
mdxCrossCompilerCache: true,
28-
},
21+
experimental_faster: true,
22+
v4: true,
2923
},
3024
headTags: [
3125
{

0 commit comments

Comments
 (0)