fix(release): more fixes
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
"git": {
|
||||
"commitMessage": "chore(release): v${version}",
|
||||
"tagName": "v${version}",
|
||||
"requireCleanWorkingDir": true
|
||||
"requireCleanWorkingDir": true,
|
||||
"addUntrackedFiles": true
|
||||
},
|
||||
"npm": {
|
||||
"publish": false
|
||||
@@ -24,5 +25,5 @@
|
||||
"tokenRef": "GITEA_TOKEN"
|
||||
},
|
||||
|
||||
"files": ["package.json"]
|
||||
"files": ["package.json", "CHANGELOG.md"]
|
||||
}
|
||||
|
||||
12
CHANGELOG.md
12
CHANGELOG.md
@@ -1,6 +1,11 @@
|
||||
# Changelog
|
||||
## <small>0.0.3-alpha.1 (2025-07-12)</small>
|
||||
|
||||
* chore(release): v0.0.3-alpha.0 ([1172fe8](https://git.tuffraid.net/cowch/logistics_support_tool/commits/1172fe8))
|
||||
* chore(release): v0.0.3-alpha.1 ([d4575b1](https://git.tuffraid.net/cowch/logistics_support_tool/commits/d4575b1))
|
||||
* fix(release): something ([b7809c9](https://git.tuffraid.net/cowch/logistics_support_tool/commits/b7809c9))
|
||||
* c ([b82438f](https://git.tuffraid.net/cowch/logistics_support_tool/commits/b82438f))
|
||||
|
||||
|
||||
## [0.0.3-alpha.2](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.3-alpha.1...v0.0.3-alpha.2) (2025-07-12)
|
||||
|
||||
## <small>0.0.2 (2025-07-12)</small>
|
||||
|
||||
@@ -163,3 +168,6 @@
|
||||
* feat(starter): intial starter release ([b370cb1](https://git.tuffraid.net/cowch/logistics_support_tool/commits/b370cb1))
|
||||
* Initial commit ([e4d3fc9](https://git.tuffraid.net/cowch/logistics_support_tool/commits/e4d3fc9))
|
||||
* Update README.md ([e081c8f](https://git.tuffraid.net/cowch/logistics_support_tool/commits/e081c8f))
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ const result = spawnSync(
|
||||
"CHANGELOG.md",
|
||||
"-s",
|
||||
"-r",
|
||||
"0",
|
||||
"1",
|
||||
],
|
||||
{ stdio: "inherit", shell: true }
|
||||
);
|
||||
@@ -143,7 +143,6 @@ const createOrUpdateRelease = async () => {
|
||||
return release;
|
||||
};
|
||||
|
||||
// Step 4: Upload asset
|
||||
const uploadAsset = async (release) => {
|
||||
const apiUrl = `https://${GITEA_URL}/api/v1/repos/${GITEA_USERNAME}/${GITEA_REPO}/releases/assets?tag=${release.tag_name}`;
|
||||
const filePath = `releases/release-${fullVersion}.zip`;
|
||||
@@ -182,7 +181,7 @@ const uploadAsset = async (release) => {
|
||||
(async () => {
|
||||
try {
|
||||
const release = await createOrUpdateRelease();
|
||||
await uploadAsset(release);
|
||||
// await uploadAsset(release); // fix this later and just update the readme.
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
process.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user