Skip to content

Commit a305cf5

Browse files
committed
fix: fix release scripts
1 parent b1c1981 commit a305cf5

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,23 @@ jobs:
7979
Write-Host "RUNNER_TEMP: $env:RUNNER_TEMP"
8080
Write-Host "RUNNER_TOOL_CACHE: $env:RUNNER_TOOL_CACHE"
8181
82-
- uses: pnpm/action-setup@v4
82+
- name: Setup PNPM
83+
uses: pnpm/action-setup@v4
8384
with:
84-
version: 10
85+
version: latest
8586

8687
- name: Setup Node.js
88+
id: setup-node
8789
uses: actions/setup-node@v4
8890
with:
8991
node-version-file: ".nvmrc"
9092
cache: pnpm
9193

94+
- name: Update Global Node.js
95+
run: |
96+
fnm install ${{ steps.setup-node.outputs.node-version }}
97+
fnm use ${{ steps.setup-node.outputs.node-version }}
98+
9299
- name: Install
93100
run: |
94101
pnpm install

.releaserc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"@semantic-release/exec",
9292
{
9393
"shell": "pwsh",
94-
"prepareCmd": "(Get-Content -Path manifest.json) -replace '\"version\": \".*\"', '\"version\": \"${nextRelease.version}\"' | Set-Content manifest.json"
94+
"prepareCmd": "$manifest = Get-Content manifest.json -Raw | ConvertFrom-Json; $manifest.version = \"${nextRelease.version}\"; $manifest | ConvertTo-Json -Depth 10 | Set-Content manifest.json && pnpm prettier --write manifest.json"
9595
}
9696
],
9797
[

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "NAVDatabase.Amx.PanasonicDisplay",
3-
"description": "NetLinx module for Panasonic displays",
3+
"description": "NetLinx module for Panasonic display control",
44
"version": "2.0.1",
55
"license": "MIT",
66
"files": ["src/*.axs", "src/*.tko", "lib/*.axi", "SymLink.ps1", "LICENSE", "README.md"],

0 commit comments

Comments
 (0)