2727 - uses : actions/checkout@v6
2828 - uses : voidzero-dev/setup-vite-plus-action@v1
2929 with :
30- node-version : ' 22 '
30+ node-version : " 22 "
3131` ` `
3232
3333### With Caching and Install
3737 - uses : actions/checkout@v6
3838 - uses : voidzero-dev/setup-vite-plus-action@v1
3939 with :
40- node-version : ' 22 '
40+ node-version : " 22 "
4141 cache : true
4242 run-install : true
4343` ` `
4949 - uses : actions/checkout@v6
5050 - uses : voidzero-dev/setup-vite-plus-action@v1
5151 with :
52- version : ' 1.2.3'
53- node-version : ' 22 '
52+ version : " 1.2.3"
53+ node-version : " 22 "
5454 cache : true
5555` ` `
5656
6161 - uses : actions/checkout@v6
6262 - uses : voidzero-dev/setup-vite-plus-action@v1
6363 with :
64- node-version : ' 22 '
64+ node-version : " 22 "
6565 cache : true
6666 run-install : |
6767 - cwd: ./packages/app
7676 test :
7777 strategy :
7878 matrix :
79- node-version : ['20', '22', '24' ]
79+ node-version : ["20", "22", "24" ]
8080 runs-on : ubuntu-latest
8181 steps :
8282 - uses : actions/checkout@v6
@@ -89,30 +89,30 @@ jobs:
8989
9090## Inputs
9191
92- | Input | Description | Required | Default |
93- |-------| -------------| ----------| --------- |
94- | ` version` | Version of Vite+ to install | No | `latest` |
95- | `node-version` | Node.js version to install via `vp env use` | No | Vite+ default |
96- | `run-install` | Run `vp install` after setup. Accepts boolean or YAML object with `cwd`/`args` | No | `true` |
97- | `cache` | Enable caching of project dependencies | No | `false` |
98- | `cache-dependency-path` | Path to lock file for cache key generation | No | Auto-detected |
92+ | Input | Description | Required | Default |
93+ | ----------------------- | ------------------------------------------------------------------------------ | -------- | ------------- |
94+ | ` version` | Version of Vite+ to install | No | `latest` |
95+ | `node-version` | Node.js version to install via `vp env use` | No | Vite+ default |
96+ | `run-install` | Run `vp install` after setup. Accepts boolean or YAML object with `cwd`/`args` | No | `true` |
97+ | `cache` | Enable caching of project dependencies | No | `false` |
98+ | `cache-dependency-path` | Path to lock file for cache key generation | No | Auto-detected |
9999
100100# # Outputs
101101
102- | Output | Description |
103- |--------| -------------|
104- | `version` | The installed version of Vite+ |
102+ | Output | Description |
103+ | ----------- | ---------------------------------------- |
104+ | `version` | The installed version of Vite+ |
105105| `cache-hit` | Boolean indicating if cache was restored |
106106
107107# # Caching
108108
109109When `cache : true` is set, the action automatically detects your lock file and caches the appropriate package manager store:
110110
111- | Lock File | Package Manager | Cache Directory |
112- |-----------| -----------------| -----------------|
113- | `pnpm-lock.yaml` | pnpm | pnpm store |
114- | `package-lock.json` | npm | npm cache |
115- | `yarn.lock` | yarn | yarn cache |
111+ | Lock File | Package Manager | Cache Directory |
112+ | ------------------- | --------------- | --------------- |
113+ | `pnpm-lock.yaml` | pnpm | pnpm store |
114+ | `package-lock.json` | npm | npm cache |
115+ | `yarn.lock` | yarn | yarn cache |
116116
117117The cache key format is : ` vite-plus-{OS}-{arch}-{pm}-{lockfile-hash}`
118118
@@ -135,7 +135,7 @@ jobs:
135135
136136 - uses: voidzero-dev/setup-vite-plus-action@v1
137137 with:
138- node-version: '22'
138+ node-version: "22"
139139 cache: true
140140
141141 - run: vp run build
0 commit comments