mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
47e6ce9083
* build test test test Update action.yml Update action.yml test test Update action.yml Update action.yml Update action.yml test test Update ci.yml Update ci.yml test test test test Update action.yml test Update ci.yml Update e2e-ci.yml test * Update ci.yml * Update plugin-generator-e2e.yaml * test * test * test * test * Update e2e-ci.yml * Update e2e-ui.yml * test * Update ci.yml * Update ci.yml * Update action.yml * Update action.yml * Update package.json * Update static-data.yml * Update static-data.yml * Update website.yml * test * Update ui-components.yml * Update ui-components.yml * Update ui-components.yml
50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
name: 'Install app with Node specific version'
|
|
description: 'install application'
|
|
|
|
inputs:
|
|
registry-url:
|
|
description: 'Registry URL for pnpm'
|
|
required: false
|
|
default: 'http://localhost:4873'
|
|
reporter:
|
|
description: 'Reporter for pnpm'
|
|
required: false
|
|
default: 'silent'
|
|
loglevel:
|
|
description: 'Log level for pnpm'
|
|
required: false
|
|
default: 'error'
|
|
node-version:
|
|
description: 'Node.js version to use'
|
|
required: true
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Use Node
|
|
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
|
|
with:
|
|
node-version: ${{ inputs.node-version }}
|
|
- name: Install pnpm
|
|
run: |
|
|
corepack enable
|
|
corepack prepare
|
|
shell: bash
|
|
- name: set store
|
|
run: |
|
|
if [ ! -d "$HOME/.pnpm-store" ]; then
|
|
mkdir -p $HOME/.pnpm-store
|
|
pnpm config set store-dir $HOME/.pnpm-store
|
|
else
|
|
echo "Store directory already exists. Skipping configuration."
|
|
fi
|
|
shell: bash
|
|
- name: Restore cache pnpm store
|
|
uses: ./.github/actions/cache-store
|
|
- name: Install
|
|
run: pnpm install --reporter=${{inputs.reporter}} --ignore-scripts --registry ${{ inputs.registry-url }} --loglevel=${{ inputs.loglevel }}
|
|
shell: bash
|
|
- name: Save cache pnpm store
|
|
if: steps.cache-npm.outputs.cache-hit == 'false'
|
|
uses: ./.github/actions/cache-store
|
|
|