@@ -18,36 +18,31 @@ jobs:
1818 with :
1919 fetch-depth : 0
2020
21+
22+ - name : Install pnpm
23+ uses : pnpm/action-setup@v4
24+
2125 - name : Use Node.js ${{ matrix.node-version }}
2226 uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2327 with :
2428 registry-url : " https://registry.npmjs.org"
2529 node-version : ${{ matrix.node-version }}
26-
27- - uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
28- id : yarn-cache
29- with :
30- path : .yarn
31- key : ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
32- restore-keys : |
33- ${{ runner.os }}-yarn-
30+ cache : ' pnpm'
3431
3532 - uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
3633 id : nextjs-cache
3734 with :
3835 path : packages/documentation/.next/cache
39- key : ${{ runner.os }}-nextjs-${{ hashFiles('yarn. lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
36+ key : ${{ runner.os }}-nextjs-${{ hashFiles('pnpm- lock.yaml ') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
4037 restore-keys : |
41- ${{ runner.os }}-nextjs-${{ hashFiles('yarn.lock') }}-
42-
43- - run : corepack enable
38+ ${{ runner.os }}-nextjs-${{ hashFiles('pnpm-lock.yaml') }}-
4439
4540 - run : pnpm install --frozen-lockfile
46- - run : yarn ci-build
41+ - run : pnpm ci-build
4742 - name : Publish documentation
4843 if : github.ref == 'refs/heads/main'
4944 run : |
5045 git config user.name "github-actions[bot]"
5146 git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
5247 git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
53- yarn lerna run publish:gh-pages --scope ' @nahkies/openapi-code-generator-documentation'
48+ pnpm --filter @nahkies/openapi-code-generator-documentation run publish:gh-pages
0 commit comments