Skip to content

Commit 18a029d

Browse files
Fix CI (#1)
* Add prepack command for publishing, as well as volta config for local tooling (opt in) * Don't require lockfile to install deps * the setup-pnpm action requires a lockfile 🤷 * Add @vitest/browser * @vitest/browser requires webdriverio
1 parent c70425b commit 18a029d

File tree

3 files changed

+3557
-2
lines changed

3 files changed

+3557
-2
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v4
2727
- uses: wyvox/action-setup-pnpm@v3
28-
- run: pnpm install
28+
- run: pnpm install --no-lockfile
2929
- run: pnpm build
3030
- run: pnpm vitest ${{ matrix.testenv.args }}

package.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,23 @@
1818
"scripts": {
1919
"dev": "vite",
2020
"build": "tsc && vite build",
21+
"prepack": "npm run build",
2122
"test": "vitest"
2223
},
2324
"author": "EisenbergEffect",
2425
"license": "Apache-2.0",
2526
"devDependencies": {
2627
"@types/node": "^20.11.25",
28+
"@vitest/browser": "^1.5.3",
2729
"prettier": "^3.2.5",
2830
"typescript": "latest",
2931
"vite": "^5.2.6",
3032
"vite-plugin-dts": "^3.7.3",
31-
"vitest": "^1.4.0"
33+
"vitest": "^1.4.0",
34+
"webdriverio": "^8.36.1"
35+
},
36+
"volta": {
37+
"node": "22.0.0",
38+
"pnpm": "9.0.6"
3239
}
3340
}

0 commit comments

Comments
 (0)