Procházet zdrojové kódy

[ci]更新GitHub Actions工作流,将npm命令替换为bun命令以优化构建过程。

dufu1991 před 1 rokem
rodič
revize
f44bf211b7
1 změnil soubory, kde provedl 9 přidání a 9 odebrání
  1. 9 9
      .github/workflows/releases-site.yml

+ 9 - 9
.github/workflows/releases-site.yml

@@ -38,24 +38,24 @@ jobs:
               with:
               with:
                   bun-version: 'latest'
                   bun-version: 'latest'
 
 
-            - name: Build rollup-plugin-stdf-icon and stdf and rollup-plugin-md-ts
+            - name: Build rollup-plugin-stdf-icon & stdf & rollup-plugin-md-ts
               run: |
               run: |
                   cd packages/rollup-plugin-stdf-icon
                   cd packages/rollup-plugin-stdf-icon
-                  npm i
-                  npm run build
+                  bun i
+                  bun run build
                   cd ../stdf
                   cd ../stdf
-                  npm i
-                  npm run package
+                  bun i
+                  bun run package
                   cd ../rollup-plugin-md-ts
                   cd ../rollup-plugin-md-ts
-                  npm i
-                  npm run build
+                  bun i
+                  bun run build
                   cd ../../
                   cd ../../
 
 
             - name: Install dependencies and build
             - name: Install dependencies and build
               run: |
               run: |
                   cd docs/site
                   cd docs/site
-                  npm i
-                  npm run build
+                  bun i
+                  bun run build
 
 
             - name: Setup Pages
             - name: Setup Pages
               uses: actions/configure-pages@v4
               uses: actions/configure-pages@v4