fix: npm action
This commit is contained in:
25
.github/actions/node-install/action.yml
vendored
25
.github/actions/node-install/action.yml
vendored
@@ -12,23 +12,28 @@ runs:
|
|||||||
with:
|
with:
|
||||||
node-version: ${{ inputs.node_version }}
|
node-version: ${{ inputs.node_version }}
|
||||||
|
|
||||||
- name: Cache node modules
|
- name: Cache npm
|
||||||
id: cache-npm
|
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
env:
|
|
||||||
cache-name: cache-node-modules
|
|
||||||
with:
|
with:
|
||||||
path: ~/.npm
|
path: ~/.npm
|
||||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
key: npm-${{ hashFiles('package-lock.json') }}
|
||||||
restore-keys: |
|
restore-keys: npm-
|
||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
||||||
${{ runner.os }}-build-
|
- name: Cache node_modules
|
||||||
${{ runner.os }}
|
uses: actions/cache@v3
|
||||||
|
id: cache-node-modules
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
node_modules
|
||||||
|
packages/*/node_modules
|
||||||
|
apps/*/node_modules
|
||||||
|
key: modules-${{ hashFiles('package-lock.json') }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
if: steps.cache-node-modules.outputs.cache-hit != 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
npm ci
|
npm ci --no-audit
|
||||||
npm run prisma:generate
|
npm run prisma:generate
|
||||||
env:
|
env:
|
||||||
HUSKY: '0'
|
HUSKY: '0'
|
||||||
|
|||||||
Reference in New Issue
Block a user