Skip to content

Commit

Permalink
fix: fix theme generator dev script when using pnpm install (#534)
Browse files Browse the repository at this point in the history
* fix: fix theme generator dev script when using pnpm install

* chore: upgrade actions version

* chore: version
  • Loading branch information
uyarn authored Sep 22, 2024
1 parent 859cfc0 commit af832a1
Show file tree
Hide file tree
Showing 3 changed files with 10,812 additions and 9,899 deletions.
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

0 comments on commit af832a1

Please sign in to comment.