diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a93dca1f..0e8aa1cd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,3 +50,13 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + + # For caravan coordinator, there's no publish to npm so no + # tag is created. This makes sure we push tags for everything + - name: Publish tags + if: steps.changesets.outputs.published == 'true' + run: | + npm run publish-tags + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + diff --git a/package.json b/package.json index 8c120c01..c00843ec 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "gen": "turbo gen run", "lint": "turbo lint", "version": "turbo run build lint test && changeset version", - "release": "turbo run build lint test && changeset publish" + "release": "turbo run build lint test && changeset publish", + "publish-tags": "changeset tag && git push --follow-tags" }, "devDependencies": { "@caravan/eslint-config": "*",