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
|
||||
|
||||
Reference in New Issue
Block a user