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 9f7514a commit 01b5cd5Copy full SHA for 01b5cd5
.github/workflows/release.yml
@@ -67,6 +67,7 @@ jobs:
67
needs: [create-metadata]
68
if: ${{ needs.create-metadata.outputs.npm_packages != '[]' || needs.create-metadata.outputs.pypi_packages != '[]' }}
69
runs-on: ubuntu-latest
70
+ environment: release
71
outputs:
72
changes_made: ${{ steps.commit.outputs.changes_made }}
73
steps:
@@ -170,7 +171,7 @@ jobs:
170
171
working-directory: src/${{ matrix.package }}
172
run: |
173
VERSION=$(jq -r .version package.json)
- if npm view --json | jq --arg version "$VERSION" '[.[]][0].versions | contains([$version])'; then
174
+ if npm view --json | jq -e --arg version "$VERSION" '[.[]][0].versions | contains([$version])'; then
175
echo "Version $VERSION already exists on npm"
176
exit 1
177
fi
0 commit comments