Skip to content

Commit b0149dd

Browse files
committed
chore: use yarn
1 parent 64ee324 commit b0149dd

File tree

7 files changed

+20930
-28
lines changed

7 files changed

+20930
-28
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/lychee.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
uses: actions/setup-node@v4
1616
with:
1717
node-version: 22
18-
cache: 'npm'
19-
cache-dependency-path: 'package-lock.json'
18+
cache: 'yarn'
19+
cache-dependency-path: 'yarn.lock'
2020
always-auth: 'true'
2121

2222
- name: Enable corepack
@@ -25,8 +25,8 @@ jobs:
2525
2626
- name: Build docs
2727
run: |
28-
npm ci --force
29-
npm run build
28+
yarn --immutable
29+
yarn build
3030
env:
3131
APIFY_SIGNING_TOKEN: ${{ secrets.APIFY_SIGNING_TOKEN }}
3232
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/openapi.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ jobs:
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: |
34-
npm ci
35-
npm run redoc:test
34+
yarn --immutable
35+
yarn redoc:test
3636
3737
# TODO
3838
# - uses: actions/setup-python@v5

.github/workflows/test.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ jobs:
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 }}
@@ -62,7 +62,7 @@ jobs:
6262
corepack enable
6363
6464
- name: Install Dependencies
65-
run: npm ci --force
65+
run: yarn --immutable
6666
env:
6767
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6868

@@ -95,8 +95,8 @@ jobs:
9595
corepack enable
9696
9797
- name: Install Dependencies
98-
run: npm ci --force
98+
run: yarn --immutable
9999
env:
100100
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
101101

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

.gitignore

Lines changed: 0 additions & 1 deletion
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

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,26 @@
1616
},
1717
"homepage": "https://github.com/apify/apify-docs#readme",
1818
"scripts": {
19-
"start": "npm run api:rebuild && rimraf .docusaurus && cross-env LOCALHOST=1 CRAWLEE_DOCS_FAST=1 docusaurus start",
20-
"start:dev": "npm run api:rebuild && rimraf .docusaurus && cross-env DEV=1 CRAWLEE_DOCS_FAST=1 docusaurus start",
21-
"build": "npm run api:rebuild && rimraf .docusaurus && docusaurus build",
22-
"api:generate": "npm run redoc:build && npm run redoc:build:clean && docusaurus gen-api-docs all",
19+
"start": "yarn api:rebuild && rimraf .docusaurus && cross-env LOCALHOST=1 CRAWLEE_DOCS_FAST=1 docusaurus start",
20+
"start:dev": "yarn api:rebuild && rimraf .docusaurus && cross-env DEV=1 CRAWLEE_DOCS_FAST=1 docusaurus start",
21+
"build": "yarn api:rebuild && rimraf .docusaurus && docusaurus build",
22+
"api:generate": "yarn redoc:build && yarn redoc:build:clean && docusaurus gen-api-docs all",
2323
"api:clean": "docusaurus clean-api-docs all",
24-
"api:rebuild": "npm run api:clean && npm run api:generate",
24+
"api:rebuild": "yarn api:clean && yarn api:generate",
2525
"redoc:start": "redocly preview-docs",
2626
"redoc:build": "redocly bundle apify-api/openapi/openapi.yaml -o apify-api",
27-
"redoc:build:clean": "npm run redoc:build:clean:yaml && npm run redoc:build:clean:json",
27+
"redoc:build:clean": "yarn redoc:build:clean:yaml && yarn redoc:build:clean:json",
2828
"redoc:build:clean:yaml": "redocly bundle apify-api/openapi/openapi.yaml --skip-decorator=apify/legacy-doc-url-decorator --skip-decorator=apify/client-references-links-decorator --skip-decorator=apify/code-samples-decorator -o static/api/openapi.yaml",
2929
"redoc:build:clean:json": "redocly bundle apify-api/openapi/openapi.yaml --skip-decorator=apify/legacy-doc-url-decorator --skip-decorator=apify/client-references-links-decorator --skip-decorator=apify/code-samples-decorator -o static/api/openapi.json",
30-
"redoc:test": "redocly lint && npm run redoc:build",
31-
"redoc:test2": "redocly lint && npm run redoc:build && bin/schemathesis",
30+
"redoc:test": "redocly lint && yarn redoc:build",
31+
"redoc:test2": "redocly lint && yarn redoc:build && bin/schemathesis",
3232
"write-translations": "docusaurus write-translations",
3333
"version": "docusaurus version",
3434
"rename-version": "docusaurus rename-version",
3535
"swizzle": "docusaurus swizzle",
3636
"docusaurus": "docusaurus",
37-
"lint": "npm run lint:md && npm run lint:code",
38-
"lint:fix": "npm run lint:md:fix && npm run lint:code:fix",
37+
"lint": "yarn lint:md && yarn lint:code",
38+
"lint:fix": "yarn lint:md:fix && yarn lint:code:fix",
3939
"lint:md": "markdownlint '**/*.md'",
4040
"lint:md:fix": "markdownlint '**/*.md' --fix",
4141
"lint:code": "eslint .",
@@ -114,5 +114,5 @@
114114
"engines": {
115115
"node": ">=18.0.0"
116116
},
117-
"packageManager": "npm@10.9.2"
117+
"packageManager": "yarn@4.9.0"
118118
}

0 commit comments

Comments
 (0)