Replies: 5 comments 1 reply
-
To roughly answer:
|
Beta Was this translation helpful? Give feedback.
-
Actually, it could be that they have a different release setup where the latest update.json is always stored under a release called "release", and that's why the URL is different |
Beta Was this translation helpful? Give feedback.
-
I just updated the release procedure so that the new release xpi is uploaded to a new release like before, but the This fixes the limitation that beta releases couldn't auto update because they don't show up under releases/latest |
Beta Was this translation helpful? Give feedback.
-
Done in 7b23e68 |
Beta Was this translation helpful? Give feedback.
-
I feel it has happened before that changes are made to
Good! I saw what you've done. However, I think the action you are using (meeDamian/[email protected]) is overwriting the whole "update" release each time. I mean, not only the assets. As a result, if it is a beta release, which only produces an I've been checking what |
Beta Was this translation helpful? Give feedback.
-
A series of commits have been made to support a new release procedure based on
release-it
which greatly simplifies the process of publishing new releases.As I try to understand how this works, I wrote some comments and questions. @Dominic-DallOsto, I would appreciate your feedback!
commit 76a0a59
Changes the
release
script fromzotero-plugin release
torelease-it
zotero-plugin release
anymore?release-it
settings in ourpackage.json
, from when it was used byzotero-plugin-template
/zotero-plugin-scaffold
zotero-plugin-template
stopped havingrelease-it
settings in theirpackage.json
since they started usingzotero-plugin-scaffold
in windingwind/zotero-plugin-template@0d76086zotero-plugin-scaffold
"doesn't use release-it now, it uses bumpp (...) scaffold then implements the ability to create GitHub releases itself."release-it
had been removed fromzotero-plugin-scaffold
in v0.0.14.release-it
has been configured so thatbuild/update*.json
(created bynpm run build
) is included in the Github release as an asset (see related discussion below).commit 0b5d690
Adds a
release
job to therelease
workflow:test
job. Both jobs are run on push (only that therelease
job is only run if the push event is for a tag starting withv
). Maybe consider changing the name of the workflow topush
?commit e9dc2e1
updates README with new release instructions:
npm run lint
seems to be run automatically by thebefore:init
hook whennpm run release
is run (see ourrelease-it
settings inpackage.json
). Therefore, I think we could remove step 1 above. Also, would it make sense that we run lint before every commit too?release-it
choose the version number automatically? We would just need to tellrelease-it
whether to do apatch
,minor
ormajor
version increment, and whether it's a pre-release or not (see Manage pre-releases) and letrelease-it
take care of the rest. Right?npm run release <patch|minor|major> [preRelease=<alpha|beta|rc>]
npm run release
:release-it
npm run release
is run again by Github actionsnpm run build
is run andupdate.json
and/orupdate-beta.json
are created; stable releases include bothupdate.json
andupdate-beta.json
, both pointing to the same stable release, so beta testers also get the stable release when published (see https://github.com/windingwind/zotero-plugin-template/tree/main#about-prerelease)release-it
is run both locally and on the cloud (as a workflow job; see above), with different configurations. When run locally, the version is bumped but a Github release is not created. Instead, when run on the cloud, a Github release is created (making sure that the version is not bumped again).release
job running on the cloud?node_modules/
, runnpm install
and make sure any changes made topackage-lock.json
are committed (if appropriate)?commit 923212c
Fixes the
updateURL
link:zotero-plugin-template
? Shall we report?latest
, so theirupdate-beta.json
asset is unreachable athttps://github.com/{{owner}}/{{repo}}/releases/latest/download/update-beta.json
, right? Does this mean that beta-testers do not get new beta updates automatically? Contrary to what it says in https://github.com/windingwind/zotero-plugin-template/tree/main#about-prereleaseBeta Was this translation helpful? Give feedback.
All reactions