Skip to content

Commit 42ba395

Browse files
committed
fix(ci): restore vite-plus workflow
1 parent 8888ffb commit 42ba395

5 files changed

Lines changed: 96 additions & 237 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,14 @@ jobs:
3131
uses: voidzero-dev/setup-vp@ca1c46663915d6c1042ae23bd39ab85718bfb0fa # v1.10.0
3232
with:
3333
node-version-file: ".node-version"
34+
version: "0.1.21"
3435
cache: true
3536

36-
- name: Set up pnpm
37-
run: npm install --global pnpm@11.1.0
38-
3937
- name: Install dependencies
40-
run: pnpm install --frozen-lockfile
38+
run: vp install
4139

4240
- name: Verify repository
43-
run: pnpm run verify
41+
run: vp run verify
4442

4543
release:
4644
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, '[skip ci]')
@@ -80,16 +78,14 @@ jobs:
8078
uses: voidzero-dev/setup-vp@ca1c46663915d6c1042ae23bd39ab85718bfb0fa # v1.10.0
8179
with:
8280
node-version-file: ".node-version"
81+
version: "0.1.21"
8382
cache: false
8483

85-
- name: Set up pnpm
86-
run: npm install --global pnpm@11.1.0
87-
8884
- name: Install dependencies
89-
run: pnpm install --frozen-lockfile
85+
run: vp install
9086

9187
- name: Build release artifacts
92-
run: pnpm run build
88+
run: vp run build
9389

9490
- name: Configure release bot remote
9591
run: git remote set-url origin "https://x-access-token:${RELEASE_BOT_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url": "git+https://github.com/putdotio/vref.git"
99
},
1010
"bin": {
11-
"vref": "dist/cli.js"
11+
"vref": "./dist/cli.mjs"
1212
},
1313
"files": [
1414
"dist",
@@ -19,21 +19,22 @@
1919
"type": "module",
2020
"exports": {
2121
".": {
22-
"types": "./dist/index.d.ts",
23-
"import": "./dist/index.js"
22+
"types": "./dist/index.d.mts",
23+
"import": "./dist/index.mjs"
2424
}
2525
},
2626
"publishConfig": {
2727
"access": "public"
2828
},
2929
"scripts": {
30-
"build": "rm -rf dist && tsc -p tsconfig.json && chmod +x dist/cli.js",
30+
"build": "vp pack src/index.ts src/cli.ts --dts",
3131
"check": "vp check .",
3232
"clean": "rm -rf coverage dist",
33-
"describe": "node ./dist/cli.js describe --output json",
34-
"pack:dry": "pnpm pack --dry-run",
35-
"test": "vitest run",
36-
"verify": "pnpm run check && pnpm run build && pnpm run test && pnpm run pack:dry"
33+
"describe": "node ./dist/cli.mjs describe --output json",
34+
"pack:dry": "vp pack src/index.ts src/cli.ts --dts && npm pack --dry-run",
35+
"prepack": "vp pack src/index.ts src/cli.ts --dts",
36+
"test": "vp test",
37+
"verify": "vp check . && vp pack src/index.ts src/cli.ts --dts && vp test && npm pack --dry-run"
3738
},
3839
"dependencies": {
3940
"effect": "beta"
@@ -48,7 +49,7 @@
4849
"engines": {
4950
"node": ">=24.14.0"
5051
},
51-
"packageManager": "pnpm@11.1.0",
52+
"packageManager": "pnpm@11.0.0",
5253
"pnpm": {
5354
"ignoredBuiltDependencies": [
5455
"msgpackr-extract"

0 commit comments

Comments
 (0)