Skip to content

Commit 8036293

Browse files
Merge branch 'main' into main
2 parents 3b2fd00 + 01b5cd5 commit 8036293

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
needs: [create-metadata]
6868
if: ${{ needs.create-metadata.outputs.npm_packages != '[]' || needs.create-metadata.outputs.pypi_packages != '[]' }}
6969
runs-on: ubuntu-latest
70+
environment: release
7071
outputs:
7172
changes_made: ${{ steps.commit.outputs.changes_made }}
7273
steps:
@@ -170,7 +171,7 @@ jobs:
170171
working-directory: src/${{ matrix.package }}
171172
run: |
172173
VERSION=$(jq -r .version package.json)
173-
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
174175
echo "Version $VERSION already exists on npm"
175176
exit 1
176177
fi
@@ -210,3 +211,11 @@ jobs:
210211
gh release create "$VERSION" \
211212
--title "Release $VERSION" \
212213
--notes-file RELEASE_NOTES.md
214+
215+
- name: Docker MCP images
216+
uses: peter-evans/repository-dispatch@v3
217+
with:
218+
token: ${{ secrets.DOCKER_TOKEN }}
219+
repository: docker/labs-ai-tools-for-devs
220+
event-type: build-mcp-images
221+
client-payload: '{"ref": "${{ needs.create-metadata.outputs.version }}"}'

0 commit comments

Comments
 (0)