-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathaction.yml
More file actions
50 lines (47 loc) · 1.85 KB
/
action.yml
File metadata and controls
50 lines (47 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: "Setup vp"
description: "Install Vite+ (vp) and optionally cache project dependencies"
author: "voidzero-dev"
branding:
icon: zap
color: purple
inputs:
version:
description: "Version of Vite+ to install"
required: false
default: "latest"
run-install:
description: "Run `vp install` after setup. Accepts boolean or YAML object with cwd/args."
required: false
default: "true"
node-version:
description: "Node.js version to install via `vp env use`. Defaults to Node.js latest LTS version."
required: false
node-version-file:
description: "Path to file containing the Node.js version spec (.nvmrc, .node-version, .tool-versions, package.json). Ignored when node-version is specified."
required: false
working-directory:
description: "Project directory to use for relative paths, lockfile auto-detection, environment checks, and default `vp install` execution."
required: false
cache:
description: "Enable caching of project dependencies"
required: false
default: "false"
cache-dependency-path:
description: "Path to lock file for cache key generation. Auto-detected if not specified."
required: false
registry-url:
description: "Optional registry to set up for auth. Will write .npmrc in $RUNNER_TEMP with registry and auth config, and set NPM_CONFIG_USERCONFIG to point npm at it. Auth token is read from env.NODE_AUTH_TOKEN."
required: false
scope:
description: "Optional scope for authenticating against scoped registries. Will fall back to the repository owner when using the GitHub Packages registry (https://npm.pkg.github.com/)."
required: false
outputs:
version:
description: "The installed version of Vite+"
cache-hit:
description: "Boolean indicating if cache was restored"
runs:
using: node24
main: dist/index.mjs
post: dist/index.mjs
post-if: success()