mirror of
https://github.com/tiennm99/loldle.git
synced 2026-09-03 16:16:50 +00:00
build: move web/ from pnpm to npm
Replace pnpm-lock.yaml with package-lock.json. The three security overrides move from pnpm-workspace.yaml to package.json#overrides, where npm reads them natively. Only the postcss floor is still live; @babel/core and js-yaml left the tree with Next.js but are kept so the declared floors survive if a dependency reintroduces them.
This commit is contained in:
@@ -21,25 +21,24 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- uses: pnpm/action-setup@v6
|
||||
with:
|
||||
package_json_file: web/package.json
|
||||
|
||||
- uses: actions/setup-node@v7
|
||||
with:
|
||||
node-version: '24'
|
||||
cache: 'pnpm'
|
||||
cache-dependency-path: web/pnpm-lock.yaml
|
||||
cache: 'npm'
|
||||
cache-dependency-path: web/package-lock.json
|
||||
|
||||
- run: pnpm install --frozen-lockfile --ignore-scripts
|
||||
- run: npm ci --ignore-scripts
|
||||
|
||||
- run: pnpm test
|
||||
- run: npm test
|
||||
|
||||
- run: pnpm lint
|
||||
- run: npm run lint
|
||||
|
||||
# No BASE_PATH here: this checks that the app compiles. The base-path
|
||||
# behaviour is verified against a real preview before release.
|
||||
- run: pnpm build
|
||||
- run: npm run build
|
||||
|
||||
scraper:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -23,19 +23,18 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- uses: pnpm/action-setup@v6
|
||||
with:
|
||||
package_json_file: web/package.json
|
||||
|
||||
- uses: actions/setup-node@v7
|
||||
with:
|
||||
node-version: '24'
|
||||
cache: 'pnpm'
|
||||
cache-dependency-path: web/pnpm-lock.yaml
|
||||
cache: 'npm'
|
||||
cache-dependency-path: web/package-lock.json
|
||||
|
||||
- run: pnpm install --frozen-lockfile --ignore-scripts
|
||||
- run: npm ci --ignore-scripts
|
||||
|
||||
- run: pnpm build
|
||||
- run: npm run build
|
||||
env:
|
||||
BASE_PATH: /${{ github.event.repository.name }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user