Skip to content

Commit

Permalink
build: adds a new required argument to choco push; does github publis…
Browse files Browse the repository at this point in the history
…h first so if that works we can ignore chocolatey (#201)
  • Loading branch information
activescott authored Jul 12, 2024
1 parent 24b02c7 commit 3d985b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ You can install or upgrade by extracting all files from the zip attached to this
`
}
}],
["@semantic-release/exec", {
"verifyConditionsCmd": "src\\.build\\semantic-release-verify.cmd",
"prepareCmd": "src\\.build\\semantic-release-prepare.cmd ${nextRelease.version}",
"publishCmd": "src\\.build\\semantic-release-publish.cmd ${nextRelease.version}",
}],
// github config docs: https://github.com/semantic-release/github
["@semantic-release/github", {
"assets": [
{"path": "src/.deploy/chocolateypackage/*.nupkg", "label": "Chocolatey Package"},
{"path": "src/.deploy/*.zip", "label": "Zip of lessmsi application binaries"}
]
}],
["@semantic-release/exec", {
"verifyConditionsCmd": "src\\.build\\semantic-release-verify.cmd",
"prepareCmd": "src\\.build\\semantic-release-prepare.cmd ${nextRelease.version}",
"publishCmd": "src\\.build\\semantic-release-publish.cmd ${nextRelease.version}",
}],
]
};
2 changes: 1 addition & 1 deletion src/.build/semantic-release-publish.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ set _BUILD_VERSION=%1

ECHO Running choco push...

choco push "%THIS_DIR%..\.deploy\chocolateypackage\lessmsi.%_BUILD_VERSION%.nupkg" --api-key=%CHOCO_KEY%
choco push --source https://push.chocolatey.org/ --api-key=%CHOCO_KEY% "%THIS_DIR%..\.deploy\chocolateypackage\lessmsi.%_BUILD_VERSION%.nupkg"

REM NOTE: ECHO does not clear/set errorlevel https://ss64.com/nt/errorlevel.htmls
ECHO Running choco push complete. Errorlevel was %ERRORLEVEL%
Expand Down

0 comments on commit 3d985b5

Please sign in to comment.