Change how tagging works
This commit is contained in:
parent
eda827847b
commit
bf5764fa73
2 changed files with 7 additions and 9 deletions
5
.changeset/lemon-geese-hang.md
Normal file
5
.changeset/lemon-geese-hang.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@saleor/app-sdk": patch
|
||||
---
|
||||
|
||||
Test changeset
|
11
.github/workflows/prepare-release.yml
vendored
11
.github/workflows/prepare-release.yml
vendored
|
@ -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
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
Loading…
Reference in a new issue