Fix node release after trusted publishing changes (#4009)
This commit is contained in:
6
.github/workflows/node-release.yml
vendored
6
.github/workflows/node-release.yml
vendored
@@ -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
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user