Skip to content

Commit 2616717

Browse files
committed
update build.yaml
1 parent c08292f commit 2616717

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/build.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,28 @@ jobs:
1313
- name: setup
1414
uses: actions/setup-node@v4
1515
with:
16-
node-version: "18.18.2"
16+
node-version: "24.1.0"
17+
18+
- name: install pnpm
19+
uses: pnpm/action-setup@v4
20+
with:
21+
version: latest
1722

1823
- name: cache
1924
uses: actions/[email protected]
2025
with:
2126
path: |
2227
node_modules
23-
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
28+
~/.pnpm-store
29+
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
2430

2531
- name: upload
2632
run: |
2733
git submodule update --init --recursive
34+
pnpm install
2835
make build
2936
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
30-
npm publish || true
37+
pnpm publish || true
3138
unlink katex/README.md && cp README.md katex/README.md
3239
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > katex/.npmrc
33-
cd katex && npm publish || true
40+
cd katex && pnpm publish || true

0 commit comments

Comments
 (0)