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
|
id: check
|
||||||
working-directory: platform/node
|
working-directory: platform/node
|
||||||
run: |
|
run: |
|
||||||
|
packageName="$( node -e "console.log(require('./package.json').name)" )"
|
||||||
currentVersion="$( node -e "console.log(require('./package.json').version)" )"
|
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 "published=$isPublished" >> "$GITHUB_OUTPUT"
|
||||||
echo "currentVersion: $currentVersion"
|
echo "currentVersion: $currentVersion"
|
||||||
echo "isPublished: $isPublished"
|
echo "isPublished: $isPublished"
|
||||||
@@ -248,9 +249,6 @@ jobs:
|
|||||||
publish_npm:
|
publish_npm:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: publish_binaries
|
needs: publish_binaries
|
||||||
permissions:
|
|
||||||
id-token: write # Required for trusted publishing
|
|
||||||
contents: write
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/maplibre/maplibre-native"
|
"url": "git+https://github.com/maplibre/maplibre-native.git"
|
||||||
},
|
},
|
||||||
"license": "BSD-2-Clause",
|
"license": "BSD-2-Clause",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user