浏览代码

release script update

codecalm 9 月之前
父节点
当前提交
1b04679c2d
共有 1 个文件被更改,包括 12 次插入5 次删除
  1. 12 5
      .github/workflows/release.yml

+ 12 - 5
.github/workflows/release.yml

@@ -19,19 +19,26 @@ jobs:
       - name: Checkout Repo
         uses: actions/checkout@v4
 
+      - uses: ruby/setup-ruby@v1
+        with:
+          bundler-cache: true
+
+      - name: Enable corepack
+        run: corepack enable pnpm
+
       - name: Setup Node.js 18
         uses: actions/setup-node@v4
         with:
+          cache: 'pnpm'
           node-version: 18
-
-      - name: Install PNPM
-        uses: pnpm/action-setup@v4
-        with:
-          version: 8
+          registry-url: 'https://registry.npmjs.org'
 
       - name: Install Dependencies
         run: pnpm install
 
+      - name: Build Package
+        run: pnpm run build
+
       - name: Creating .npmrc
         run: |
           cat << EOF > "$HOME/.npmrc"