Skip to content

Commit

Permalink
规范 packageManager #626
Browse files Browse the repository at this point in the history
  • Loading branch information
Soltus committed Apr 16, 2024
1 parent 9846540 commit 3ab42c3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ jobs:
with:
cmd: "jq .sypv 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"

- id: thislatestR
uses: pozetroninc/github-action-get-latest-release@master
with:
Expand Down Expand Up @@ -191,7 +197,7 @@ jobs:
node-version: 20

- name: Install Node pnpm
run: npm install -g pnpm
run: npm install -g ${{ steps.packageManager.outputs.value }}
working-directory: ${{ github.workspace }}/go/src/github.com/${{ matrix.string.repo_owner }}/${{ matrix.string.repo_name }}/app

- name: Change NPMRC File
Expand Down
6 changes: 3 additions & 3 deletions app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sillot",
"version": "0.29.7",
"version": "0.29.8",
"syv": "3.0.10",
"sypv": "[3.0.9]",
"description": "Build Your Eternal Digital Garden",
Expand All @@ -10,9 +10,9 @@
"main": "./electron/main.js",
"engines": {
"node": ">=20.11.1",
"pnpm": ">=8.15.5"
"pnpm": ">=9.0.0"
},
"packageManager": "pnpm@9.0.0-alpha.8",
"packageManager": "pnpm@9.0.1",
"scripts": {
"cli": "node ./package.cli.mjs",
"dlv": "echo '注意:dlv debug 是否在独立终端运行中(需要在dlv里执行continue)?没有请先启动(终端工作路径是 kernel/main.go 所在目录),不需要内核调试则应该运行 pnpm run start 命令\n' && pause && NODE_ENV=development MODE=dlv electron-forge start",
Expand Down

0 comments on commit 3ab42c3

Please sign in to comment.