Comments (5)
This would be great to have! Especially since Chrome doesn't allow me to control canary releases for an extension and I need a staging extension for QA.
I do think the issue described and the solution might need a little adjustment though. I would propose:
- We have a branch/prereleaseOverride section in the config
{
"plugins": [
[
"semantic-release-chrome",
{
"extensionId": "mppjhhbajcciljocgbadbhbgphjfdmhj",
"asset": "my-extension.zip",
"prereleaseConfig": {
"alpha": {
"extensionId": "my-alpha-extension-id",
},
"beta": {
"extensionId": "my-beta-extension-id",
},
}.
}
],
[
"@semantic-release/github",
{
"assets": ["my-extension.zip"]
}
]
]
}
The above config feels a little safer to me. If I hard-coded the extension id and added "allowPrerelease", then I could technically still release to my prod extension from my prerelease branch. If we added the ability to configure prerelease channel configs (and then throw errors on any prerelease branch that doesn't have a config), then the releaser has to be sure they are specifying the correct extension.
Also, I think for prerelease, we don't want to scrub the 4th number. That would lead to weird spots where we release 2 or 3 prereleases that are all 1.0.1 and only the first one can release. Looking at the Chrome extension versioning name, it looks like we could just remove the non-numerical prerelease name (like alpha or beta) and just release that number.
Source: https://developer.chrome.com/docs/extensions/reference/manifest/version
from semantic-release-chrome.
It would be great for this plugin to update the "version_name" field in the manifest.json with the "standard" version name normally generated by semantic-release, such as "1.0.0-alpha.1"
from semantic-release-chrome.
Pull request for this issue can be found here - #112
from semantic-release-chrome.
Yes.
For prerelease, I would certainly expect a 4-number version number such as 1.0.0.1
from semantic-release-chrome.
It would be great for this plugin to update the "version_name" field in the manifest.json with the "standard" version name normally generated by semantic-release, such as "1.0.0-alpha.1"
Exactly, "version_name" can be used exclusively for prerelease.
from semantic-release-chrome.
Related Issues (17)
- The automated release is failing 🚨
- HTTP Error 400 when Publishing HOT 2
- Multiple release branches/channels HOT 3
- Release failing but extension got updated HOT 4
- PUBLISHED_WITH_FRICTION_WARNING makes semantic-release-chrome fail HOT 1
- [Feature] Add new target 'draft', which uploads but does not publish HOT 2
- Provide better error message on 400 Bad Request HOT 2
- No way to update the non-dist version of manifest.json HOT 1
- FR: Define some common lodash templates for asset naming HOT 2
- Runtime error: PKG_INVALID_ZIP Invalid package. HOT 3
- Skip publish HOT 1
- Dependency Dashboard
- Update to the latest version of chrome-webstore-upload to avoid vulnerability in got package HOT 1
- Question: Semantic versioning without publish HOT 1
- Unable to obtain refresh token as suggested in Authentication.md HOT 2
- Question: Do Refresh Tokens Expire? If so, how to handle that?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from semantic-release-chrome.