Skip to content

Commit 6fe9b37

Browse files
lesbaaLes Moffat
andauthored
Release Hotfix: Bump client-js to latest RC (#261)
* release hotfix: - version bump client-js to latest rc - update cdn deploy GH action * release: update changelog * hotfix: remove cdn deploy from publish dry run action --------- Co-authored-by: Les Moffat <[email protected]>
1 parent 3249564 commit 6fe9b37

File tree

5 files changed

+25
-37
lines changed

5 files changed

+25
-37
lines changed

.github/workflows/npm-publish.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,16 @@ jobs:
5050
env:
5151
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
5252

53-
- name: Send Dispatch Event to CDN Repo
54-
run: |
55-
curl -X POST \
56-
-H "Authorization: token ${{ secrets.CDN_MAPTILER_TOKEN }}" \
57-
-H "Accept: application/vnd.github.v3+json" \
58-
https://api.github.com/repos/maptiler/cdn.maptiler.com/dispatches \
59-
-d '{ \
60-
"event_type": "repo_release", \
61-
"client_payload": { \
62-
"repo": "${{ github.repository }}", \
63-
"tag": "${{ github.event.release.tag_name }}", \
64-
"build_dir": "build" \
65-
}
66-
}'
53+
- name: Get Package version
54+
id: version
55+
run: echo "PACKAGE_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
56+
- name: Publish to CDN Cloudflar R2
57+
uses: ryand56/[email protected]
58+
with:
59+
r2-account-id: ${{ secrets.CDN_MAPTILER_ACCOUNT_ID }}
60+
r2-access-key-id: ${{ secrets.CDN_MAPTILER_ACCESS_KEY_ID }}
61+
r2-secret-access-key: ${{ secrets.CDN_MAPTILER_SECRET_ACCESS_KEY }}
62+
r2-bucket: cdn-storage
63+
source-dir: dist
64+
destination-dir: maptiler-sdk-js/v${{ env.PACKAGE_VERSION }}/
65+

.github/workflows/publish-dry-run.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,3 @@ jobs:
4949
npm publish --tag next --dry-run
5050
env:
5151
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
52-
53-
- name: Send Dispatch Event to CDN Repo
54-
run: |
55-
curl -X POST \
56-
-H "Authorization: token ${{ secrets.CDN_MAPTILER_TOKEN }}" \
57-
-H "Accept: application/vnd.github.v3+json" \
58-
https://api.github.com/repos/maptiler/cdn.maptiler.com/dispatches \
59-
-d '{ \
60-
"event_type": "repo_release", \
61-
"client_payload": { \
62-
"repo": "${{ github.repository }}", \
63-
"tag": "${{ github.event.release.tag_name }}", \
64-
"build_dir": "build" \
65-
}
66-
}'

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@
1010
- `ImageViewer.getImageBounds()` returns the current bounds of the viewport in image pixels (note: _not_ screen pixels, image pixels are pixels in relation to the intrinsic image size, not it's size on the screen).
1111
- `ImageViewer.fitImageBounds(bounds)` fits the viewer to `bounds`.
1212
- `ImageViewerMarker` class added. `ImageViewer`can now have markers positioned in image pixels.
13+
- `ImageViewer` now has the `getCanvas` method to retrieve the `HTMLCanvasElement`used by the viewer.
14+
- Exports `ImageMarkerEvents` type
1315

1416

1517
### 🐛 Bug Fixes
18+
1619
- Fixes a bug where `map.getProjection()` did not return a value when default projection was used
1720
- Fixes a bug where "Style Not Done Loading" error is thrown when an Image is used in conjunction with Spacebox.
1821
- Fixes a bug where switching between remote styles causes flickering in Halo.

package-lock.json

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
},
8888
"dependencies": {
8989
"@maplibre/maplibre-gl-style-spec": "~24.2.0",
90-
"@maptiler/client": "2.6.0-rc.1",
90+
"@maptiler/client": "2.6.0-rc.3",
9191
"events": "^3.3.0",
9292
"gl-matrix": "^3.4.3",
9393
"js-base64": "^3.7.7",

0 commit comments

Comments
 (0)