Skip to content

Commit cdfa472

Browse files
committed
chore: formatting fixes in README, action.yml, and package.json
1 parent bf8ff46 commit cdfa472

3 files changed

Lines changed: 37 additions & 37 deletions

File tree

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ steps:
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
@@ -37,7 +37,7 @@ steps:
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
```
@@ -49,8 +49,8 @@ steps:
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
@@ -61,7 +61,7 @@ steps:
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
@@ -76,7 +76,7 @@ jobs:
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

109109
When `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

117117
The 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

action.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
1-
name: 'Setup Vite+'
2-
description: 'Install Vite+ (vp) and optionally cache project dependencies'
3-
author: 'voidzero-dev'
1+
name: "Setup Vite+"
2+
description: "Install Vite+ (vp) and optionally cache project dependencies"
3+
author: "voidzero-dev"
44
branding:
55
icon: zap
66
color: purple
77

88
inputs:
99
version:
10-
description: 'Version of Vite+ to install'
10+
description: "Version of Vite+ to install"
1111
required: false
12-
default: 'latest'
12+
default: "latest"
1313
run-install:
14-
description: 'Run `vp install` after setup. Accepts boolean or YAML object with cwd/args.'
14+
description: "Run `vp install` after setup. Accepts boolean or YAML object with cwd/args."
1515
required: false
16-
default: 'true'
16+
default: "true"
1717
node-version:
18-
description: 'Node.js version to install via `vp env use`. If not specified, uses the default version bundled with Vite+.'
18+
description: "Node.js version to install via `vp env use`. If not specified, uses the default version bundled with Vite+."
1919
required: false
2020
cache:
21-
description: 'Enable caching of project dependencies'
21+
description: "Enable caching of project dependencies"
2222
required: false
23-
default: 'false'
23+
default: "false"
2424
cache-dependency-path:
25-
description: 'Path to lock file for cache key generation. Auto-detected if not specified.'
25+
description: "Path to lock file for cache key generation. Auto-detected if not specified."
2626
required: false
2727

2828
outputs:
2929
version:
30-
description: 'The installed version of Vite+'
30+
description: "The installed version of Vite+"
3131
cache-hit:
32-
description: 'Boolean indicating if cache was restored'
32+
description: "Boolean indicating if cache was restored"
3333

3434
runs:
3535
using: node20

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "1.0.0",
44
"private": true,
55
"type": "module",
6-
"packageManager": "pnpm@10.28.0",
76
"scripts": {
87
"lint": "vp lint --type-aware --type-check",
98
"lint:fix": "vp run lint --fix",
@@ -26,5 +25,6 @@
2625
"@types/node": "^22.19.11",
2726
"typescript": "^5.9.3",
2827
"vite-plus": "latest"
29-
}
28+
},
29+
"packageManager": "pnpm@10.28.0"
3030
}

0 commit comments

Comments
 (0)