|
1 | 1 | name: Lychee Link Checker
|
2 | 2 |
|
3 |
| -on: [pull_request] |
| 3 | +on: [ pull_request ] |
4 | 4 |
|
5 | 5 | jobs:
|
6 |
| - link-check: |
7 |
| - runs-on: ubuntu-latest |
8 |
| - steps: |
9 |
| - - uses: actions/checkout@v4 |
| 6 | + link-check: |
| 7 | + runs-on: ubuntu-latest |
| 8 | + steps: |
| 9 | + - uses: actions/checkout@v4 |
10 | 10 |
|
11 |
| - - name: Use Node.js 20 |
12 |
| - uses: actions/setup-node@v4 |
13 |
| - with: |
14 |
| - node-version: 20 |
15 |
| - cache: 'npm' |
16 |
| - cache-dependency-path: 'package-lock.json' |
17 |
| - always-auth: 'true' |
18 |
| - registry-url: 'https://npm.pkg.github.com/' |
19 |
| - scope: '@apify-packages' |
| 11 | + - name: Use Node.js 20 |
| 12 | + uses: actions/setup-node@v4 |
| 13 | + with: |
| 14 | + node-version: 20 |
| 15 | + cache: 'npm' |
| 16 | + cache-dependency-path: 'package-lock.json' |
| 17 | + always-auth: 'true' |
| 18 | + registry-url: 'https://npm.pkg.github.com/' |
| 19 | + scope: '@apify-packages' |
20 | 20 |
|
21 |
| - - name: Build docs |
22 |
| - run: | |
23 |
| - npm ci --force |
24 |
| - npm run build |
25 |
| - env: |
26 |
| - APIFY_SIGNING_TOKEN: ${{ secrets.APIFY_SIGNING_TOKEN }} |
27 |
| - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
28 |
| - SMARTLOOK_PROJECT_KEY: ${{ secrets.SMARTLOOK_PROJECT_KEY }} |
| 21 | + - name: Build docs |
| 22 | + run: | |
| 23 | + npm ci --force |
| 24 | + npm update @apify/openapi |
| 25 | + npm run build |
| 26 | + env: |
| 27 | + APIFY_SIGNING_TOKEN: ${{ secrets.APIFY_SIGNING_TOKEN }} |
| 28 | + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
| 29 | + SMARTLOOK_PROJECT_KEY: ${{ secrets.SMARTLOOK_PROJECT_KEY }} |
29 | 30 |
|
30 |
| - - uses: lycheeverse/lychee-action@v1.10.0 |
31 |
| - env: |
32 |
| - GITHUB_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }} |
33 |
| - with: |
34 |
| - fail: true |
35 |
| - args: --base https://docs.apify.com --exclude-path 'build/versions.html' --max-retries 6 --verbose --no-progress --accept '100..=103,200..=299,403..=403, 429' './build/**/*.html' |
| 31 | + - uses: lycheeverse/lychee-action@v1.10.0 |
| 32 | + env: |
| 33 | + GITHUB_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }} |
| 34 | + with: |
| 35 | + fail: true |
| 36 | + args: --base https://docs.apify.com --exclude-path 'build/versions.html' --max-retries 6 --verbose --no-progress --accept '100..=103,200..=299,403..=403, 429' './build/**/*.html' |
0 commit comments