Skip to content

Commit

Permalink
publish tags during release
Browse files Browse the repository at this point in the history
  • Loading branch information
bucko13 committed Feb 13, 2024
1 parent e5c57de commit 8e207cf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "*",
Expand Down

0 comments on commit 8e207cf

Please sign in to comment.