Skip to content

Commit c2164b1

Browse files
committed
👷 build before test (dist dir); consistent pnpm
1 parent b08b2a8 commit c2164b1

File tree

4 files changed

+3524
-2818
lines changed

4 files changed

+3524
-2818
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- uses: pnpm/action-setup@v4
2020
with:
21-
version: 8
21+
version: 10
2222

2323
- name: Use Node.js
2424
uses: actions/setup-node@v6
@@ -29,5 +29,5 @@ jobs:
2929
- name: Build and Test
3030
id: build
3131
run: |
32-
pnpm it
32+
pnpm install --frozen-lockfile
3333
pnpm run build

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444

4545
- uses: pnpm/action-setup@v4
4646
with:
47-
version: 8
47+
version: 10
4848

4949
- name: Use Node.js
5050
uses: actions/setup-node@v6
@@ -70,7 +70,9 @@ jobs:
7070
git config user.name ${{ env.GH_BOT_NAME }}
7171
git config user.email ${{ env.GH_BOT_EMAIL }}
7272
73-
pnpm install
73+
pnpm install --frozen-lockfile
74+
pnpm run build
75+
7476
if [[ "$VERSION" == "test" ]]; then
7577
RETRY=true
7678
npm run preversion

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
"scripts": {
1010
"preinstall": "npx only-allow pnpm",
1111
"dev": "node esbuild.config.mjs",
12-
"prebuild": "npx @biomejs/biome check ./src && npm run test",
12+
"prebuild": "pnpm exec biome check ./src",
1313
"build": "node esbuild.config.mjs production",
14-
"fix": "npx @biomejs/biome check --write ./src",
15-
"format": "npx @biomejs/biome format ./src",
16-
"lint": "npx @biomejs/biome lint ./src",
14+
"postbuild": "pnpm run test",
15+
"fix": "pnpm exec biome check --write ./src",
16+
"format": "pnpm exec biome format ./src",
17+
"lint": "pnpm exec biome lint ./src",
1718
"test": "jest",
1819
"coverage": "jest --coverage",
1920
"preversion": "pnpm run test && node esbuild.config.mjs production",
@@ -83,7 +84,7 @@
8384
"mustache": "^4.2.0",
8485
"yaml-front-matter": "^4.1.1"
8586
},
86-
"resolutions": {
87+
"overrides": {
8788
"glob": "11.0.3",
8889
"iconv-lite": "0.6.3",
8990
"raw-body": "2.5.2"

0 commit comments

Comments
 (0)