Skip to content

Commit 0759867

Browse files
committed
chore: add a pre-release check
1 parent 79f3931 commit 0759867

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

.github/workflows/v-next-changesets-release.yml

+23-2
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,32 @@ jobs:
3737
echo "changesets=found" >> "$GITHUB_OUTPUT"
3838
fi
3939
40+
release-pre-check:
41+
name: Release Pre-Check
42+
runs-on: ubuntu-latest
43+
needs: [changesetcheck]
44+
if: needs.changesetcheck.outputs.CHANGESETS == 'found'
45+
steps:
46+
- name: checkout code repository
47+
uses: actions/checkout@v4
48+
with:
49+
fetch-depth: 0
50+
- uses: pnpm/action-setup@v4
51+
with:
52+
version: 9
53+
- uses: actions/setup-node@v4
54+
with:
55+
node-version: 22
56+
cache: "pnpm"
57+
- name: Install
58+
run: pnpm install --no-frozen-lockfile
59+
- name: Run full check (build, lint and test)
60+
run: pnpm run vnext-full-check
61+
4062
release:
4163
name: Release
4264
runs-on: ubuntu-latest
43-
needs: changesetcheck
44-
if: needs.changesetcheck.outputs.CHANGESETS == 'found'
65+
needs: [release-pre-check]
4566
permissions:
4667
contents: write
4768
id-token: write

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"test": "node scripts/run-tests.js",
2121
"lint": "pnpm run --recursive lint && pnpm prettier --check",
2222
"lint:fix": "pnpm run --recursive lint:fix && pnpm prettier --write",
23-
"prettier": "prettier *.md \"{docs,.github}/**/*.{md,yml,ts,js}\" \"scripts/**/*.js\""
23+
"prettier": "prettier *.md \"{docs,.github}/**/*.{md,yml,ts,js}\" \"scripts/**/*.js\"",
24+
"vnext-full-check": "pnpm run --recursive --filter \"./v-next/**\" build && pnpm run --recursive --filter \"./v-next/**\" lint && pnpm run --recursive --filter \"./v-next/**\" test"
2425
},
2526
"dependencies": {}
2627
}

0 commit comments

Comments
 (0)