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 86c9f8c commit eceb586
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ 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: output_packageManager
run: echo "::set-output name=packageManager::$(${{ steps.packageManager.outputs.value }})"

- id: thislatestR
uses: pozetroninc/github-action-get-latest-release@master
with:
Expand Down Expand Up @@ -185,19 +193,13 @@ jobs:
GOPATH: ${{ github.workspace }}/go
GOARCH: ${{ matrix.config.goarch }}

- name: Extract packageManager from package.json
uses: sergeysova/jq-action@v2
id: packageManager
with:
cmd: "jq .packageManager ${{ github.workspace }}/go/src/github.com/${{ matrix.string.repo_owner }}/${{ matrix.string.repo_name }}/app/package.json -r"

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20

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

- name: Change NPMRC File
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sillot",
"version": "0.29.10",
"version": "0.29.11",
"syv": "3.0.10",
"sypv": "[3.0.9]",
"description": "Build Your Eternal Digital Garden",
Expand Down

0 comments on commit eceb586

Please sign in to comment.