Skip to content
Open
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
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Please follow these steps to create a new release:
The bump script will help automate some of the steps below:
- Suggest a version number based on [semantic versioning](https://semver.org/)
- Create a release branch from `main`
- Update the version in `package.json` , `package-lock.json`, `CHANGELOG.md` and `deploy/deployment.yaml` files
- Update the version in `package.json` , `package-lock.json` and `CHANGELOG.md` files
- Commit the changes
- Push the release branch to GitHub

Expand All @@ -162,11 +162,11 @@ Please follow these steps to create a new release:
1. **Create PR to main**
- Push the changes to GitHub and create a Pull Request from your release branch into `main`

1. **Release**
2. **Release**
- Create a new Github release with the version you decided on earlier
- Changes will be automatically deployed once the Github release is created

1. **Post-Release**
3. **Post-Release**
- Check the publish action to make sure all deployments succeeded
- Check https://developer.smartbear.com/smartbear-mcp/ to ensure the docs have been updated correctly

Expand Down
58 changes: 0 additions & 58 deletions deploy/deployment.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions deploy/service.yaml

This file was deleted.

28 changes: 3 additions & 25 deletions scripts/bump.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const __dirname = path.dirname(__filename);
const ROOT_DIR = path.resolve(__dirname, "..");
const PACKAGE_JSON_PATH = path.join(ROOT_DIR, "package.json");
const CHANGELOG_PATH = path.join(ROOT_DIR, "CHANGELOG.md");
const DEPLOYMENT_PATH = path.join(ROOT_DIR, "deploy", "deployment.yaml");

const rl = readline.createInterface({
input: process.stdin,
Expand Down Expand Up @@ -74,22 +73,6 @@ const updateChangelog = (newVersion) => {
console.log(`Updated CHANGELOG.md`);
};

const updateDeployment = (newVersion) => {
let content = fs.readFileSync(DEPLOYMENT_PATH, "utf-8");
// Regex to match image: ghcr.io/smartbear/smartbear-mcp:vX.Y.Z
const regex = /(image: ghcr\.io\/smartbear\/smartbear-mcp:v)(\d+\.\d+\.\d+)/;

if (regex.test(content)) {
content = content.replace(regex, `$1${newVersion}`);
fs.writeFileSync(DEPLOYMENT_PATH, content);
console.log(`Updated deploy/deployment.yaml`);
} else {
console.warn(
"Warning: Could not find image tag in deployment.yaml to update.",
);
}
};

const main = async () => {
console.log("🚀 Starting Release Process...");

Expand Down Expand Up @@ -145,17 +128,12 @@ const main = async () => {
// 4. Update Changelog
updateChangelog(newVersion);

// 5. Update Deployment Manifest
updateDeployment(newVersion);

// 6. Commit Changes
// 5. Commit Changes
console.log("Committing changes...");
runCommand(
"git add package.json package-lock.json CHANGELOG.md deploy/deployment.yaml",
);
runCommand("git add package.json package-lock.json CHANGELOG.md");
runCommand(`git commit -m "release: v${newVersion}"`);

// 7. Push branch
// 6. Push branch
console.log(`Pushing branch ${branchName} to origin...`);
runCommand(`git push -u origin ${branchName}`);

Expand Down
Loading