Skip to content

Commit

Permalink
chore: fix install from git with production flag
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyRL committed Jun 21, 2023
1 parent d169b9c commit 9b31d57
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
if: github.repository == 'DIYgod/RSSHub'
runs-on: ubuntu-latest
timeout-minutes: 5
env:
HUSKY: 0
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ COPY ./package.json /app/
RUN \
set -ex && \
export PUPPETEER_SKIP_DOWNLOAD=true && \
npm pkg delete scripts.prepare && \
corepack enable pnpm && \
pnpm install --prod --frozen-lockfile && \
pnpm rb
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"jest:coverage": "cross-env NODE_ENV=test jest --coverage --reporters=default --reporters=jest-junit --runInBand --forceExit --detectOpenHandles",
"jest:watch": "cross-env NODE_ENV=test jest --watch",
"lint": "eslint .",
"prepare": "node ./scripts/prepare.js",
"prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\"",
"profiling": "NODE_ENV=production node --prof lib/index.js",
"start": "node lib/index.js",
"test": "npm run format:check && npm run jest:coverage"
Expand Down
4 changes: 0 additions & 4 deletions scripts/prepare.js

This file was deleted.

0 comments on commit 9b31d57

Please sign in to comment.