- docs: Update release instructions

- npm: work on release scripts
- submodules: Add old versions as submodules for availability on Github Pages
master
Brett Zamir 2020-07-13 08:46:23 +08:00
parent efda0d6231
commit 859d09c1be
25 changed files with 45 additions and 18 deletions

16
.gitmodules vendored
View File

@ -1,7 +1,3 @@
[submodule "releases/svg-edit-2.8"]
path = releases/svg-edit-2.8
url = https://github.com/SVG-Edit/svgedit.git
branch = release-v2.8
[submodule "releases/svg-edit-2.8.1"]
path = releases/svg-edit-2.8.1
url = https://github.com/SVG-Edit/svgedit.git
@ -78,15 +74,11 @@
path = releases/svg-edit-5.0.0
url = https://github.com/SVG-Edit/svgedit.git
branch = release-v5.0.0
[submodule "releases/svg-edit-2.8"]
path = releases/svg-edit-2.8
url = https://github.com/SVG-Edit/svgedit.git
branch = release-v2.8
[submodule "releases/svg-edit-5.1.0"]
path = releases/svg-edit-5.1.0
url = https://github.com/SVG-Edit/svgedit.git
branch = release-v5.1.0
[submodule "releases/svg-edit-6.0.0"]
path = releases/svg-edit-6.0.0
url = https://github.com/SVG-Edit/svgedit.git
branch = release-v6.0.0
[submodule "releases/latest"]
path = releases/latest
url = https://github.com/SVG-Edit/svgedit.git
branch = release-v6.0.0

View File

@ -27,11 +27,15 @@ The above steps can be done on a fork and committed via a pull request.
## Create the release as a submodule
1. Create a branch for the release, e.g., `git branch release-v6.0.0`
1. Create a branch for the release, e.g., `git branch release-v6.0.0` and
push it to origin.
1. While still on `master`, run the following (changing the version). This
will add the branch to `.gitsubmodules` and have it point `latest` to
this new release:
`VERSION=6.0.0 npm run add-release`
will add the branch to `.gitsubmodules` and have the current version in
`package.json` point `latest` to this new release:
`npm run add-new-release`; if you need to add a specific version (e.g.,
an older one that was missing, use the following):
`npm run add-release --release=6.0.0`. If you need to remove a release,
run `npm run remove-release --release=6.0.0`
1. Commit these changes `git commit -m "Updating for release X.Y.Z"`-->.
1. Push to `master`.
1. Ensure the new release is available by visiting

9
package-lock.json generated
View File

@ -6644,6 +6644,15 @@
"sha.js": "^2.4.8"
}
},
"cross-env": {
"version": "7.0.2",
"resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.2.tgz",
"integrity": "sha512-KZP/bMEOJEDCkDQAyRhu3RL2ZO/SUVrxQVI0G3YEQ+OLbRA3c6zgixe8Mq8a/z7+HKlNEjo8oiLUs8iRijY2Rw==",
"dev": true,
"requires": {
"cross-spawn": "^7.0.1"
}
},
"cross-spawn": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",

View File

@ -13,8 +13,9 @@
"node": ">=8.5.0"
},
"scripts": {
"add-release": "cross-var git submodule add --depth=1 -b \"release-v$npm_package_version\" -- https://github.com/SVG-Edit/svgedit.git \"releases/svg-edit-$npm_package_version\"",
"add-new-release": "npm run add-release && cross-var git config --file=.gitmodules submodule.releases/latest.branch \"release-v$npm_package_version\"",
"add-release": "git submodule add --depth=1 -b \"release-v$npm_config_release\" -- https://github.com/SVG-Edit/svgedit.git \"releases/svg-edit-$npm_config_release\"",
"add-new-release": "cross-var npm run add-release --release=$npm_package_version && cross-var git config --file=.gitmodules submodule.releases/latest.branch \"release-v$npm_package_version\"",
"remove-release": "git submodule deinit -f \"releases/svg-edit-$npm_config_release\" && rm -rf .git/modules/releases/svg-edit-$npm_config_release && git rm -f releases/svg-edit-$npm_config_release",
"submodules": "run-s submodules-init submodules-update",
"submodules-init": "echo \"Performing non-recursive init as don't want submodules to have their own releases!\" && git submodule update --init",
"submodules-update": "echo \"Performing non-recursive fetch as don't want submodules to have their own releases!\" && git submodule foreach git fetch && git submodule update --remote && git submodule foreach git merge origin master",

1
releases/svg-edit-2.8 Submodule

@ -0,0 +1 @@
Subproject commit facefa435170d67b38c43836c7a6834c2c5765ba

@ -0,0 +1 @@
Subproject commit facefa435170d67b38c43836c7a6834c2c5765ba

@ -0,0 +1 @@
Subproject commit facefa435170d67b38c43836c7a6834c2c5765ba

@ -0,0 +1 @@
Subproject commit facefa435170d67b38c43836c7a6834c2c5765ba

@ -0,0 +1 @@
Subproject commit facefa435170d67b38c43836c7a6834c2c5765ba

@ -0,0 +1 @@
Subproject commit facefa435170d67b38c43836c7a6834c2c5765ba

@ -0,0 +1 @@
Subproject commit facefa435170d67b38c43836c7a6834c2c5765ba

@ -0,0 +1 @@
Subproject commit facefa435170d67b38c43836c7a6834c2c5765ba

@ -0,0 +1 @@
Subproject commit facefa435170d67b38c43836c7a6834c2c5765ba

@ -0,0 +1 @@
Subproject commit facefa435170d67b38c43836c7a6834c2c5765ba

@ -0,0 +1 @@
Subproject commit facefa435170d67b38c43836c7a6834c2c5765ba

@ -0,0 +1 @@
Subproject commit facefa435170d67b38c43836c7a6834c2c5765ba

@ -0,0 +1 @@
Subproject commit facefa435170d67b38c43836c7a6834c2c5765ba

@ -0,0 +1 @@
Subproject commit facefa435170d67b38c43836c7a6834c2c5765ba

@ -0,0 +1 @@
Subproject commit facefa435170d67b38c43836c7a6834c2c5765ba

@ -0,0 +1 @@
Subproject commit facefa435170d67b38c43836c7a6834c2c5765ba

@ -0,0 +1 @@
Subproject commit facefa435170d67b38c43836c7a6834c2c5765ba

@ -0,0 +1 @@
Subproject commit facefa435170d67b38c43836c7a6834c2c5765ba

@ -0,0 +1 @@
Subproject commit facefa435170d67b38c43836c7a6834c2c5765ba

@ -0,0 +1 @@
Subproject commit facefa435170d67b38c43836c7a6834c2c5765ba

@ -0,0 +1 @@
Subproject commit facefa435170d67b38c43836c7a6834c2c5765ba