Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

Update cd.yml (#11096)

绛亽9fba19866d25
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml
index 8da70cb14d..b3071b9f3f 100644
--- a/.github/workflows/cd.yml
+++ b/.github/workflows/cd.yml
@@ -14,6 +14,7 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
release_version: ${{ steps.release_info.outputs.release_version }}
version: ${{ steps.version.outputs.value }}
+ packageManager: ${{ steps.packageManager.outputs.value }}
steps:
- name: Checkout code
uses: actions/checkout@v3
@@ -52,6 +53,12 @@ jobs:
with:
cmd: 'jq .version app/package.json -r'
+ - name: Extract packageManager from package.json
+ uses: sergeysova/jq-action@v2
+ id: packageManager
+ with:
+ cmd: "jq .packageManager app/package.json -r"
+
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
@@ -140,12 +147,12 @@ jobs:
GOARCH: ${{ matrix.config.goarch }}
- name: Set up Node
- uses: actions/setup-node@v3
+ uses: actions/setup-node@v4
with:
- node-version: 18
+ node-version: 20
- name: Install Node pnpm
- run: npm install -g pnpm
+ run: npm install -g ${{ needs.create_release.outputs.packageManager }}
working-directory: ${{ github.workspace }}/go/src/github.com/siyuan-note/siyuan/app
- name: Install Node Dependencies