Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add npm version #17

Merged
merged 2 commits into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ inputs:
description: nodejs version to use
required: false
default: "20.x"
npm-version:
description: npm version to use
required: false
default: ""
install-admin:
description: Whether to install administration npm dependencies and prepare jest
required: false
Expand Down Expand Up @@ -146,6 +150,12 @@ runs:
with:
node-version: ${{ inputs.node-version }}

- name: Install npm version
if: inputs.npm-version
shell: bash
run: |
npm install -g npm@${{ inputs.npm-version }}

- name: Retrieve the cached "node_modules" directory (if present)
uses: actions/cache@v4
if: inputs.install-storefront
Expand Down Expand Up @@ -182,7 +192,7 @@ runs:
if: ${{ inputs.install-admin }}
shell: bash
working-directory: ${{ inputs.path || '.' }}/src/Administration/Resources/app/administration
run: npm run unit-setup
run: npm run unit-setup --if-present

- name: Entity schema
if: ${{ inputs.install-admin }}
Expand Down
Loading