Fix node release after trusted publishing changes (#4009)

This commit is contained in:
Andrew Calcutt
2025-12-14 03:16:16 -05:00
committed by GitHub
parent c18bbb35c6
commit 598ff87c2e
2 changed files with 3 additions and 5 deletions

View File

@@ -30,8 +30,9 @@ jobs:
id: check
working-directory: platform/node
run: |
packageName="$( node -e "console.log(require('./package.json').name)" )"
currentVersion="$( node -e "console.log(require('./package.json').version)" )"
isPublished="$( npm view @maplibre/maplibre-gl-native versions --json | jq -c --arg cv "$currentVersion" 'any(. == $cv)' )"
isPublished="$( npm view "$packageName" versions --json | jq -c --arg cv "$currentVersion" 'any(. == $cv)' )"
echo "published=$isPublished" >> "$GITHUB_OUTPUT"
echo "currentVersion: $currentVersion"
echo "isPublished: $isPublished"
@@ -248,9 +249,6 @@ jobs:
publish_npm:
runs-on: ubuntu-latest
needs: publish_binaries
permissions:
id-token: write # Required for trusted publishing
contents: write
defaults:
run:
shell: bash

View File

@@ -17,7 +17,7 @@
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/maplibre/maplibre-native"
"url": "git+https://github.com/maplibre/maplibre-native.git"
},
"license": "BSD-2-Clause",
"dependencies": {