Skip to content

Commit 598ff87

Browse files
authored
Fix node release after trusted publishing changes (#4009)
1 parent c18bbb3 commit 598ff87

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/node-release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ jobs:
3030
id: check
3131
working-directory: platform/node
3232
run: |
33+
packageName="$( node -e "console.log(require('./package.json').name)" )"
3334
currentVersion="$( node -e "console.log(require('./package.json').version)" )"
34-
isPublished="$( npm view @maplibre/maplibre-gl-native versions --json | jq -c --arg cv "$currentVersion" 'any(. == $cv)' )"
35+
isPublished="$( npm view "$packageName" versions --json | jq -c --arg cv "$currentVersion" 'any(. == $cv)' )"
3536
echo "published=$isPublished" >> "$GITHUB_OUTPUT"
3637
echo "currentVersion: $currentVersion"
3738
echo "isPublished: $isPublished"
@@ -248,9 +249,6 @@ jobs:
248249
publish_npm:
249250
runs-on: ubuntu-latest
250251
needs: publish_binaries
251-
permissions:
252-
id-token: write # Required for trusted publishing
253-
contents: write
254252
defaults:
255253
run:
256254
shell: bash

platform/node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"types": "index.d.ts",
1818
"repository": {
1919
"type": "git",
20-
"url": "https://github.com/maplibre/maplibre-native"
20+
"url": "git+https://github.com/maplibre/maplibre-native.git"
2121
},
2222
"license": "BSD-2-Clause",
2323
"dependencies": {

0 commit comments

Comments
 (0)