Skip to content

Commit 3731283

Browse files
authored
fix: publish docs ci (#358)
missed whilst migrating from `yarn` to `pnpm` https://github.com/mnahkies/openapi-code-generator/actions/runs/16539926163/job/46779681593
1 parent 52fe1bd commit 3731283

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

.github/workflows/publish-docs.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)