diff --git a/setup-js/action.yml b/setup-js/action.yml index 77b0161..539a903 100644 --- a/setup-js/action.yml +++ b/setup-js/action.yml @@ -53,7 +53,8 @@ runs: - name: Install dependencies shell: bash - run: - ${{ inputs.package-manager }} install ${{ inputs.no-frozen-lockfile == - 'true' && '--no-frozen-lockfile' || '' }} + env: + PACKAGE_MANAGER: ${{ inputs.package-manager }} + NO_FROZEN_LOCKFILE: ${{ inputs.no-frozen-lockfile == 'true' && '--no-frozen-lockfile' || '' }} + run: $PACKAGE_MANAGER install $NO_FROZEN_LOCKFILE if: ${{ inputs.auto-install }}