Skip to content

Commit d4f7b44

Browse files
authored
chore: fix package preview (#11542)
1 parent c16ef63 commit d4f7b44

File tree

3 files changed

+39
-7
lines changed

3 files changed

+39
-7
lines changed

.github/workflows/preview.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,5 @@ jobs:
3131
- name: Build
3232
run: npm run package
3333

34-
- name: Prepare pnpm for preview publishing
35-
run: |
36-
npm install -g corepack@latest
37-
corepack prepare pnpm@latest --activate
38-
3934
- name: Release preview version
4035
run: npm run publish:preview

package-lock.json

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@
8686
"pack": "gulp pack",
8787
"package": "gulp package",
8888
"pre-commit": "lint-staged",
89-
"prepare": "husky",
90-
"publish:preview": "pkg-pr-new publish './build/package' --pnpm --template='./sample/playground'",
89+
"prepare": "is-ci || husky",
90+
"publish:preview": "pkg-pr-new publish './build/package' --template='./sample/playground'",
9191
"test": "npm run compile && npm run test:fast --",
9292
"test:ci": "mocha --bail",
9393
"test:fast": "mocha",
@@ -141,6 +141,7 @@
141141
"gulp-typescript": "^6.0.0-alpha.1",
142142
"gulpclass": "^0.2.0",
143143
"husky": "^9.1.7",
144+
"is-ci": "^4.1.0",
144145
"lint-staged": "^15.5.2",
145146
"mocha": "^11.7.2",
146147
"mongodb": "^6.20.0",

0 commit comments

Comments
 (0)