Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix theme generator dev script when using pnpm install #534

Merged
merged 3 commits into from
Sep 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/test-build-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
steps:
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
version: 9
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: actions/cache@v2
- uses: actions/cache@v4
env:
cache-name: cache-nodemodules
with:
Expand All @@ -33,7 +33,7 @@ jobs:
zip -r _site.zip _site

- name: upload _site artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: _site
path: _site.zip
Expand All @@ -45,7 +45,7 @@ jobs:

- name: Upload PR number
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: pr
path: ./pr-id.txt
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"dev:site": "pnpm run build:components && pnpm run --filter 'tdesign-site' dev",
"dev:theme-generator": "pnpm run --filter 'tdesign-theme-generator' dev",
"build:components": "pnpm run --filter 'tdesign-site-components' build && pnpm run --filter 'tdesign-site-components' postbuild",
"build:theme-generator": "pnpm run --filter 'tdesign-theme-generator' build",
"build-watch:theme-generator": "pnpm run --filter 'tdesign-theme-generator' build:watch",
"site": "npm run build:components && cd site && npm run build",
"site:intranet": "npm run build:components && cd site && npm run site:intranet",
"site:preview": "npm run build:components && cd site && npm run site:preview",
Expand All @@ -26,11 +28,14 @@
"eslint-plugin-prettier": "^5.0.0",
"husky": "^8.0.0",
"lint-staged": "8.1.5",
"prettier": "^3.0.3",
"prettier": "^2.8.8",
"stylelint": "^15.10.3",
"stylelint-config-standard": "^34.0.0",
"stylelint-config-standard-less": "^2.0.0"
},
"engines": {
"pnpm": ">=9.0.0"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
Expand Down
Loading
Loading