Skip to content

Commit

Permalink
Merge pull request #17 from shopware/feat/add-npm-version
Browse files Browse the repository at this point in the history
feat: add npm version
  • Loading branch information
mkraeml authored Nov 27, 2024
2 parents 237b44c + 2018811 commit 620f202
Showing 1 changed file with 11 additions and 1 deletion.
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

0 comments on commit 620f202

Please sign in to comment.