-
Notifications
You must be signed in to change notification settings - Fork 15
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: align semantic version with manifest version #113
base: master
Are you sure you want to change the base?
Conversation
Hi @owlcode , I developed this same feature in my fork. Since the "version" manifest property is not displayed once the "version_name" property is used, I ended up by generating "1.0.0." in the "version" property, timestamp being Date.now in milliseconds which is unique and incremental. This solves all other questions. You may update your PR with this idea, so that contributing my PR does not collide with your work. |
@RupertBarrow I saw your fork and would have probably used it but haven't found NPM released package. I am not entirely sure if we need I get your point of having conflicting version when using different prerelease channels but with your approach you can fall into collision too when two different pipelines are running concurrently (although I realize it's much less likely). It's not a problem for me since I've different extension ids on separate channels. I chose to have some reference to initial version number but I think I'd agree it doesn't really matter since we have |
I use a private NPM registry on Github. Would it be useful to make it public ?
Yes, I must do that too.
I was worried about how Google managed the version field internally, especially if there are duplicate version numbers on different channels |
As of now not for me since I've already published it under
Considering what Google recommends for test releases (I mean different extension id) then I guess having duplicate version numbers on different channels is not a problem? I don't think releasing same extension id from different branches would make sense to anyone? |
Oh I didn't know that having number this large is acceptable because the documentation says that it's much smaller than that: https://developer.chrome.com/docs/extensions/reference/manifest/version |
You're right, I had to truncate it. |
So it means that each release cannot be less than 100k seconds from each other? |
Pull Request
Related issue
#111 - Allow publishing of pre-release version
Description
Parse pre release version and make it compatible with extension's
version
field inside manifest. Useversion_name
field from chrome extension manifest to exactly reflect version.This is slightly different approach compared to #112
Why
Chrome web api call throws a version format error when trying to publish a package from pre-release branch.
How
Parse prerelease version number and align it with chrome extension requirements. For example if next version is
1.0.0-develop.1
it will format it as1.0.0.1
Screenshots
How has this been tested
Unit tests
Type of change
Checklist
npm run ci
to be sure).