mirror of
https://github.com/tiennm99/thptqg.git
synced 2026-10-13 08:15:54 +00:00
chore: migrate from npm to pnpm
Replace package-lock.json with pnpm-lock.yaml, add packageManager field, update package.json scripts from npm run to pnpm, and update GitHub Actions workflow to use pnpm/action-setup@v4 with frozen-lockfile installs.
This commit is contained in:
1 parent
5bdcc01f60
commit
08e55d98b1
4 files changed
+1974
-3241
No files matched your search
Vendored
+8
-4
@@ -20,16 +20,20 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 11
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: npm
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Build all databases
|
||||
run: npm run build:db:all
|
||||
run: pnpm build:db:all
|
||||
|
||||
- name: Compress databases
|
||||
run: |
|
||||
@@ -38,7 +42,7 @@ jobs:
|
||||
gzip -kf -9 public-old2/thptqg2017.db
|
||||
|
||||
- name: Build all site variants
|
||||
run: npm run build:all
|
||||
run: pnpm build:all
|
||||
|
||||
- name: Drop uncompressed DB files from dist
|
||||
run: |
|
||||
|
||||
Reference in new issue
Block a user