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

Publishing patches to older component versions #749

Open
alexkilgour opened this issue May 18, 2022 · 1 comment
Open

Publishing patches to older component versions #749

alexkilgour opened this issue May 18, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation role: FED stale this issue is more than 30 days old

Comments

@alexkilgour
Copy link
Collaborator

Sometimes we will need to fix a bug in an older version of a component. How do we do that?

  1. cd into project
  2. checkout point-in-history-where-patch-needed
  3. create branch for the version you are patching e.g. 2.5.0 would be version2.5
  4. make changes, and increment version
  5. DO NOT MERGE back to master
  6. Manually publish to NPM npm publish --tag version2.5

As long as you supply a --tag <tagname> argument to npm publish, the latest tag will not be updated, and people using npm install <package> or npm install <package>@latest will still get the latest version.

Note that the tagname has to share a namespace with version numbers, so it's best to choose a tagname that doesn't look like a semver version; avoid '1.0.6' or 'v1.0.6'.

sources and examples

@alexkilgour alexkilgour added documentation Improvements or additions to documentation role: FED labels May 18, 2022
@sturobson
Copy link
Contributor

There has been no update on this issue for 30 days. It is now marked as "stale". If you think this issue is still relevant and needs attention then reply with an update. If there is no update in 14 days, this issue will be closed.

@sturobson sturobson added the stale this issue is more than 30 days old label Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation role: FED stale this issue is more than 30 days old
Projects
None yet
Development

No branches or pull requests

2 participants