Change how tagging works

This commit is contained in:
Lukasz Ostrowski 2023-02-27 18:18:43 +01:00
parent eda827847b
commit bf5764fa73
2 changed files with 7 additions and 9 deletions

View file

@ -0,0 +1,5 @@
---
"@saleor/app-sdk": patch
---
Test changeset

View file

@ -34,14 +34,7 @@ jobs:
with:
title: Release to npm
commit: Release to npm
publish: pnpm publish
# action is automatically pushing even before PR is merged?
# This should:
# 1. Push to "next" every time
# 2. Push to latest AFTER PR is merged
publish: pnpm publish && npx changeset tag && git push --follow-tags
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Push tags
if: steps.changesets.outputs.published == 'true'
run: npx changeset tag && git push --follow-tags