Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add bump-packages generator #19

Merged
merged 1 commit into from
Sep 16, 2023
Merged

Conversation

edusperoni
Copy link
Collaborator

adds nx generate @nativescript/plugin-tools:bump-packages which will bump all libraries by default.

Examples:

nx generate @nativescript/plugin-tools:bump-packages patch
nx generate @nativescript/plugin-tools:bump-packages minor
nx generate @nativescript/plugin-tools:bump-packages minor
nx generate @nativescript/plugin-tools:bump-packages 2.0.0

also allows filtering by tag and specifying specific project name.

  • does not publish
  • does not build
  • does not apply changes if any of the bumps fail
  • does not change root package.json

Intended to be used in a release script:

{
  "scripts": {
     "version": "node tools/version-handler.js && npm run changelog"
   "changelog": "..."
   }
}

// cli
npm version patch

// version-handler.js

const version = require('../package.json').version
const command = `nx generate @nativescript/plugin-tools:bump-packages ${version}`
// run command
// run git add packages/*/package.json

Then a later script can build and publish all packages

@cla-bot cla-bot bot added the cla: yes label Jul 18, 2023
@NathanWalker NathanWalker merged commit 5061aff into main Sep 16, 2023
@NathanWalker NathanWalker deleted the feat/bump-packages-generator branch September 16, 2023 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants