We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e81fd1b commit 17d86d0Copy full SHA for 17d86d0
.ado/jobs/npm-publish.yml
@@ -24,7 +24,11 @@ jobs:
24
- template: /.ado/templates/configure-git.yml@self
25
26
- script: |
27
- PUBLISH_TAG=$(jq -r '.release.version.generatorOptions.currentVersionResolverMetadata.tag' nx.json)
+ PUBLISH_TAG=$(jq -r '.release.version.versionActionsOptions.currentVersionResolverMetadata.tag' nx.json)
28
+ if [ -z "$PUBLISH_TAG" ] || [ "$PUBLISH_TAG" = "null" ]; then
29
+ echo "Error: Failed to read publish tag from nx.json"
30
+ exit 1
31
+ fi
32
echo "##vso[task.setvariable variable=publishTag]$PUBLISH_TAG"
33
echo "Using publish tag from nx.json: $PUBLISH_TAG"
34
displayName: Read publish tag from nx.json
0 commit comments