mirror of
https://github.com/tiennm99/thptqg.git
synced 2026-10-11 03:13:48 +00:00
chore: migrate from npm to pnpm
Replace package-lock.json with pnpm-lock.yaml, add packageManager field, and update GitHub Actions workflow to use pnpm/action-setup@v4 with frozen-lockfile installs.
This commit is contained in:
1 parent
08e55d98b1
commit
eb7409a503
4 files changed
+1972
-3239
No files matched your search
Vendored
+8
-4
@@ -20,22 +20,26 @@ 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 database
|
||||
run: npm run build:db
|
||||
run: pnpm build:db
|
||||
|
||||
- name: Compress database
|
||||
run: gzip -k -9 public/thptqg2016.db
|
||||
|
||||
- name: Build site
|
||||
run: npm run build
|
||||
run: pnpm build
|
||||
|
||||
- name: Remove uncompressed db from dist
|
||||
run: rm -f dist/thptqg2016.db
|
||||
|
||||
Generated
-3235
File diff suppressed because it is too large.
Load diff
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "thptqg2016",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@11.1.1",
|
||||
"version": "1.0.0",
|
||||
"type": "module",
|
||||
"description": "Tra cứu điểm thi THPT QG 2016 - Hỗ trợ truy vấn SQL tùy chỉnh",
|
||||
|
||||
Generated
+1963
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user