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 2786ff5 commit 756dce8Copy full SHA for 756dce8
.github/workflows/release.yml
@@ -40,6 +40,7 @@ jobs:
40
run: pnpm build
41
42
- name: Create and publish versions
43
+ id: changesets
44
uses: changesets/action@v1
45
with:
46
commit: 'chore: update versions'
@@ -50,3 +51,15 @@ jobs:
50
51
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
52
NPM_CONFIG_PROVENANCE: true
53
NPM_CONFIG_ACCESS: public
54
+
55
+ - name: Tag release
56
+ if: steps.changesets.outputs.published == 'true'
57
+ run: |
58
+ version=$(jq -r '.version' packages/agents/package.json)
59
+ tag="v${version}"
60
+ if git rev-parse "refs/tags/$tag" >/dev/null 2>&1; then
61
+ echo "Tag $tag already exists"
62
+ else
63
+ git tag -a "$tag" -m "Release $tag"
64
+ git push origin "$tag"
65
+ fi
0 commit comments