tileserver-gl-light 5.2.0-pre.2 → 5.2.0-pre.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -2
- package/Dockerfile +4 -1
- package/PUBLISHING.md +104 -11
- package/changelog_for_version.md +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
# tileserver-gl changelog
|
|
2
2
|
|
|
3
|
-
## 5.2.0-pre.
|
|
3
|
+
## 5.2.0-pre.3
|
|
4
4
|
* Use npm packages for public/resources (https://github.com/maptiler/tileserver-gl/pull/1427) by @okimiko
|
|
5
5
|
* use ttf files of googlefonts/opensans (https://github.com/maptiler/tileserver-gl/pull/1447) by @okimiko
|
|
6
6
|
* Limit Elevation Lat/Long Output Length (https://github.com/maptiler/tileserver-gl/pull/1457) by @okimiko
|
|
7
7
|
* Fetch style from url (https://github.com/maptiler/tileserver-gl/pull/1462) by @YoelRidgway
|
|
8
8
|
* fix: memory leak on SIGHUP (https://github.com/maptiler/tileserver-gl/pull/1455) by @okimiko
|
|
9
9
|
* fix: resolves Unimplemented type: 3 error for geojson format (https://github.com/maptiler/tileserver-gl/pull/1465) by @rjdjohnston
|
|
10
|
-
* fix: Test light version in ct workflow - fix sqlite build in light (https://github.com/maptiler/tileserver-gl/pull/
|
|
10
|
+
* fix: Test light version in ct workflow - fix sqlite build in light (https://github.com/maptiler/tileserver-gl/pull/1477) by @acalcutt
|
|
11
|
+
* fix: light version docker entrypoint permissions (https://github.com/maptiler/tileserver-gl/pull/1478) by @acalcutt
|
|
11
12
|
|
|
12
13
|
## 5.1.3
|
|
13
14
|
* Fix SIGHUP (broken since 5.1.x) (https://github.com/maptiler/tileserver-gl/pull/1452) by @okimiko
|
package/Dockerfile
CHANGED
|
@@ -68,7 +68,10 @@ COPY --from=builder /usr/src/app /usr/src/app
|
|
|
68
68
|
|
|
69
69
|
COPY . /usr/src/app
|
|
70
70
|
|
|
71
|
-
RUN mkdir -p /data &&
|
|
71
|
+
RUN mkdir -p /data && \
|
|
72
|
+
chown node:node /data && \
|
|
73
|
+
chmod +x /usr/src/app/docker-entrypoint.sh
|
|
74
|
+
|
|
72
75
|
VOLUME /data
|
|
73
76
|
WORKDIR /data
|
|
74
77
|
|
package/PUBLISHING.md
CHANGED
|
@@ -1,19 +1,112 @@
|
|
|
1
|
-
# Publishing
|
|
1
|
+
# Publishing a New Version
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
npm version <update_type> --preid pre --no-git-tag-version
|
|
3
|
+
This document outlines the process for publishing new versions of this project. We use a GitHub workflow for automated releases, but also provide manual steps for specific situations.
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
## Automated Publishing via GitHub Workflow (Recommended)
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
This is the preferred method for publishing new versions. It automates the entire process, including version bumping, tagging, building, and publishing.
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
1. **Prepare the Release:**
|
|
11
10
|
|
|
12
|
-
|
|
11
|
+
* **Choose the Version Increment:** Determine the appropriate semantic versioning increment (prerelease, prepatch, preminor, premajor, patch, minor, major).
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
```## 5.0.0```
|
|
13
|
+
* **Update `package.json`:** Use the `npm version` command to bump the version number. This command also supports creating pre-release versions using the `--preid pre` flag.
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
```bash
|
|
16
|
+
# Example: Increment to a new patch version
|
|
17
|
+
npm version patch --no-git-tag-version
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
# Example: Increment to a new minor version
|
|
20
|
+
npm version minor --no-git-tag-version
|
|
21
|
+
|
|
22
|
+
# Example: Increment to a new major version
|
|
23
|
+
npm version major --no-git-tag-version
|
|
24
|
+
|
|
25
|
+
# Example: Create a pre-release (e.g., -pre.0) version
|
|
26
|
+
npm version prepatch --preid pre --no-git-tag-version
|
|
27
|
+
# OR
|
|
28
|
+
npm version preminor --preid pre --no-git-tag-version
|
|
29
|
+
# OR
|
|
30
|
+
npm version premajor --preid pre --no-git-tag-version
|
|
31
|
+
|
|
32
|
+
# Example: Increment an existing pre-release version (e.g., -pre.0 to -pre.1)
|
|
33
|
+
npm version prerelease --preid pre --no-git-tag-version
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
* `--no-git-tag-version`: This prevents `npm version` from automatically creating a git tag, as the GitHub workflow will handle this later.
|
|
37
|
+
* `--preid pre`: Specifies that "pre" is the pre-release identifier.
|
|
38
|
+
|
|
39
|
+
* **Update the Changelog (`CHANGELOG.md`):** Add a new section for the release. The heading *must* exactly match the format `## <VERSION>`, where `<VERSION>` is the full version number from `package.json`. Describe the changes included in the release.
|
|
40
|
+
|
|
41
|
+
```markdown
|
|
42
|
+
## 1.2.3
|
|
43
|
+
* Added new feature X.
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
2. **Commit and Push:** Commit the changes to `package.json`, `package-lock.json` and `CHANGELOG.md` to a branch. Create a pull request (PR) for review. If you are an administrator, you may push directly, but a PR is generally recommended for code review.
|
|
47
|
+
|
|
48
|
+
3. **Run the GitHub Workflow:** Once the PR is merged (or changes pushed directly), trigger the "Build, Test, Release" GitHub workflow. This workflow is responsible for:
|
|
49
|
+
|
|
50
|
+
* Building the project.
|
|
51
|
+
* Running tests.
|
|
52
|
+
* Creating an NPM package.
|
|
53
|
+
* Building and pushing Docker images.
|
|
54
|
+
* Creating a GitHub Release.
|
|
55
|
+
* Creating a Git tag for the release.
|
|
56
|
+
|
|
57
|
+
## Manual Publishing (For Special Cases)
|
|
58
|
+
|
|
59
|
+
Use the following steps *only* when the automated workflow is not suitable (e.g., for debugging, specific environment needs).
|
|
60
|
+
|
|
61
|
+
1. **Update Version in `package.json`:** Modify the `version` field in `package.json` to the desired version number.
|
|
62
|
+
|
|
63
|
+
2. **Create and Push Git Tag:**
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
git tag vX.X.X # Replace X.X.X with the version number
|
|
67
|
+
git push origin --tags
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
3. **NPM Publish Options (Choose ONE):**
|
|
71
|
+
|
|
72
|
+
* **Option A: Publish only the full `tileserver-gl` version:**
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
npm publish --access public
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
* **Option B: Build and Publish both `tileserver-gl` and `tileserver-gl-light` using `publish.js`:**
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
# This script builds the light version and publishes both tileserver-gl and tileserver-gl-light to NPM.
|
|
82
|
+
node publish.js
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
* **Option C: Build only the `tileserver-gl-light` version (no publish):**
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
# This script ONLY builds the light version (e.g., for local testing or Docker image creation) without publishing.
|
|
89
|
+
node publish.js --no-publish
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
4. **Build and Push Docker Images:**
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
# Build the main image
|
|
96
|
+
docker buildx build --platform linux/amd64 -t maptiler/tileserver-gl:latest -t maptiler/tileserver-gl:X.X.X . # Replace X.X.X
|
|
97
|
+
docker push maptiler/tileserver-gl --all-tags
|
|
98
|
+
|
|
99
|
+
# Build the light image
|
|
100
|
+
cd light
|
|
101
|
+
docker buildx build --platform linux/amd64 -t maptiler/tileserver-gl-light:latest -t maptiler/tileserver-gl-light:X.X.X . # Replace X.X.X
|
|
102
|
+
docker push maptiler/tileserver-gl-light --all-tags
|
|
103
|
+
cd .. # Return to the project root
|
|
104
|
+
```
|
|
105
|
+
* Make sure you are logged into the docker registry before pushing. `docker login`
|
|
106
|
+
|
|
107
|
+
**Important Considerations for Manual Publishing:**
|
|
108
|
+
|
|
109
|
+
* **Consistency:** Ensure the version number in `package.json`, the Git tag, and the Docker image tags are identical.
|
|
110
|
+
* **Credentials:** Verify that you have the necessary permissions to push Docker images and publish to NPM.
|
|
111
|
+
* **Cleanliness:** Before building Docker images, ensure your working directory is clean to avoid including unwanted files in the image.
|
|
112
|
+
* **Error Handling:** Manually publishing is more prone to errors. Double-check each step to avoid issues.
|
package/changelog_for_version.md
CHANGED
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* Fetch style from url (https://github.com/maptiler/tileserver-gl/pull/1462) by @YoelRidgway
|
|
5
5
|
* fix: memory leak on SIGHUP (https://github.com/maptiler/tileserver-gl/pull/1455) by @okimiko
|
|
6
6
|
* fix: resolves Unimplemented type: 3 error for geojson format (https://github.com/maptiler/tileserver-gl/pull/1465) by @rjdjohnston
|
|
7
|
-
* fix: Test light version in ct workflow - fix sqlite build in light (https://github.com/maptiler/tileserver-gl/pull/
|
|
7
|
+
* fix: Test light version in ct workflow - fix sqlite build in light (https://github.com/maptiler/tileserver-gl/pull/1477) by @acalcutt
|
|
8
|
+
* fix: light version docker entrypoint permissions (https://github.com/maptiler/tileserver-gl/pull/1478) by @acalcutt
|
|
8
9
|
|