Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ jobs:
provenance: mode=max

changesets:
needs: ["activation", "config", "release"]
needs: ["activation", "config", "release", "agent"]
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down
16 changes: 5 additions & 11 deletions scripts/changeset.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
*
* Example:
* node changeset.js release v1.2.3 --yes
*
* Note: This script does NOT create or push git tags. Tags should be created by the caller
* (e.g., the GitHub Actions workflow) before running this script. This script only updates
* CHANGELOG.md, deletes changeset files, commits the changes, and pushes to the main branch.
*/

const fs = require("fs");
Expand Down Expand Up @@ -492,21 +496,13 @@ async function runRelease(versionTag, skipConfirmation = false) {
console.log(formatInfoMessage("Committing changes..."));
execSync(`git commit -m "Release ${versionString}"`, { encoding: "utf8" });

// Create tag
console.log(formatInfoMessage("Creating tag..."));
execSync(`git tag -a ${versionString} -m "Release ${versionString}"`, { encoding: "utf8" });

// Push commit to remote
console.log(formatInfoMessage("Pushing commit..."));
execSync("git push", { encoding: "utf8" });

// Push tag
console.log(formatInfoMessage("Pushing tag..."));
execSync(`git push origin ${versionString}`, { encoding: "utf8" });

console.log("");
console.log(formatSuccessMessage(`Successfully released ${versionString}`));
console.log(formatSuccessMessage("Commit and tag pushed to remote"));
console.log(formatSuccessMessage("Commit pushed to remote"));
} catch (error) {
console.log("");
console.error(formatErrorMessage("Git operation failed: " + error.message));
Expand All @@ -518,9 +514,7 @@ async function runRelease(versionTag, skipConfirmation = false) {
console.log(` git add CHANGELOG.md`);
}
console.log(` git commit -m "Release ${versionString}"`);
console.log(` git tag -a ${versionString} -m "Release ${versionString}"`);
console.log(` git push`);
console.log(` git push origin ${versionString}`);
process.exit(1);
}
}
Expand Down
Loading