mirror of
https://github.com/tiennm99/mathmax.git
synced 2026-08-02 00:22:24 +00:00
chore: migrate from npm to pnpm
This commit is contained in:
@@ -15,14 +15,17 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 11
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '24'
|
||||
# TODO: add `cache: 'npm'` once package-lock.json is committed.
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
# TODO: switch to `npm ci` once package-lock.json is committed.
|
||||
run: npm install --no-audit --no-fund
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
run: pnpm build
|
||||
|
||||
@@ -21,17 +21,20 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 11
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '24'
|
||||
# TODO: add `cache: 'npm'` once package-lock.json is committed.
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
# TODO: switch to `npm ci` once package-lock.json is committed.
|
||||
run: npm install --no-audit --no-fund
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
run: pnpm build
|
||||
env:
|
||||
SITE_URL: https://tiennm99.github.io
|
||||
SITE_BASE: /mathmax
|
||||
|
||||
Reference in New Issue
Block a user