Automates the process of fetching the latest version, incrementing it, building, and publishing the package to npm.
This skill guides you through the process of updating and publishing the package.
First, determine the package name from package.json.
package.json to find the name property.Find the currently published version to ensure we increment correctly.
npm view <package_name> version to get the latest published version.0.0.0 or use the version currently in package.json.Calculate the next version number.
Update the version field in package.json with the new version.
replace_file_content to update the file.Run the build script to ensure the code is ready for publishing.
npm run build.If the build was successful, publish the package.
npm publish..npmrc handles this).