Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

chore(doc-gen): insert current tagged version if missing from list of… #16099

Merged
merged 1 commit into from
Jul 12, 2017

Conversation

Narretz
Copy link
Contributor

@Narretz Narretz commented Jul 11, 2017

… all versions

In commit ce49edc, we switched to npm info (now yarn info)
instead of the local git repository information to get the list of currently available versions for
the docs app. This means that during a release the version that is currently tagged is not yet
available on npm, and therefore our list of available versions is incomplete.

We now simply add the current build version (read from build/version.json) to the list of all
versions if it fulfills the following conditions:

  • it is not a snapshot build
  • it is not already part of the list of all versions (i.e. if you are building locally)

Closes #15741

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
chore

What is the current behavior? (You can also link to an open issue here)
see above

Please check if the PR fulfills these requirements

Other information:

… all versions

In commit ce49edc, we switched to npm info (now yarn info)
instead of the local git repository information to get the list of currently available versions for
the docs app. This means that during a release the version that is currently tagged is not yet
available on npm, and therefore our list of available versions is incomplete.

We now simply add the current build version (read from build/version.json) to the list of all
versions if it fulfills the following conditions:

- it is not a snapshot build
- it is not already part of the list of all versions (i.e. if you are building locally)

Closes angular#15741
@Narretz Narretz merged commit 25bf1ef into angular:master Jul 12, 2017
@Narretz Narretz deleted the chore-doc-versions branch July 12, 2017 09:15
Narretz added a commit that referenced this pull request Jul 12, 2017
… all versions

In commit ce49edc, we switched to npm info (now yarn info)
instead of the local git repository information to get the list of currently available versions for
the docs app. This means that during a release the version that is currently tagged is not yet
available on npm, and therefore our list of available versions is incomplete.

We now simply add the current build version (read from build/version.json) to the list of all
versions if it fulfills the following conditions:

- it is not a snapshot build
- it is not already part of the list of all versions (i.e. if you are building locally on a tagged commit)

Closes #15741
Closes #16099
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs App: current version is not selected in version picker in specific versions
3 participants